You are here: Symbol Reference > Dew Namespace > Dew.Math Namespace > Classes > Matrix Structure > Matrix Methods > ExtendToComplex Method > Matrix.ExtendToComplex Method (bool)
Dew Math for .NET
ContentsIndexHome
PreviousUpNext
Matrix.ExtendToComplex Method (bool)

Extends a real object to a complex object.

Syntax
C#
Visual Basic
public TMtxVec ExtendToComplex(bool Zeros);

Extend the calling object to complex Matrix. After the calling of ExtendToComplex the imaginary part becomes the same as real part if Zeros is false. If Zeros is true the imaginary part is set to zero. The use of the in-place version of the method is discouraged because it requires 3*N copy operations, while the not-in-place version requires only 2*N copy operations.

var a,b: Matrix; begin a.SetIt(2,2,False,[1,2,3,4]); b.ExtendToComplex(a,True); end;
Copyright (c) 1999-2024 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!