TVec.SetCplx Method

Overload List

#SignatureDescription
1TVec SetCplx(TCplx[] A)Sets vector values (complex).
2TMtxVec SetCplx(Int32 Index, TCplx[] A)Sets object complex values.

Overload 1: TVec SetCplx(TCplx[] A)

Sets vector values (complex).

#NameTypeDescription
1ATCplx[]

Result: stored in self (calling object), returns self for chaining

Remarks:

Sets the Dew.Math.TMtxVecBase.Length property of the calling vector to (High(A)+1) and the Dew.Math.TMtxVec.Complex property to true. The complex elements of A array are copied to the calling vector CValues.

Note
Use this method for complex array only.

See Also: TVec.SetDouble, TVec.SetInteger, TVec.SetIt, TVec.SetSingle

Overload 2: TMtxVec SetCplx(Int32 Index, TCplx[] A)

Sets object complex values.

#NameTypeDescription
1IndexInt32start index
2ATCplx[]

Result: stored in self (calling object), returns self for chaining

Remarks:

The a array complex values are copied to the calling object CValues from [Index]..[Index+Length(a)-1]. An exception is raised if calling object array borders are overrun/underrun.

Note
Use this method for complex array only.