TVec.SetDouble Method

Overload List

#SignatureDescription
1TVec SetDouble(Boolean AComplex, Double[] A)Sets vector values (double).
2TMtxVec SetDouble(Int32 Index, Double[] A)Sets object values (double).

Overload 1: TVec SetDouble(Boolean AComplex, Double[] A)

Sets vector values (double).

#NameTypeDescription
1AComplexBoolean
2ADouble[]

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 AComplex. The double elements of A array are copied to the calling vector. If AComplex is True then real parts of complex numbers are on even (0,2,4..)and imaginary parts on odd indexes.(1,3,5,..)

Note
Use this method for setting a double array only.

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

Overload 2: TMtxVec SetDouble(Int32 Index, Double[] A)

Sets object values (double).

#NameTypeDescription
1IndexInt32start index
2ADouble[]

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

Remarks:

The double elements of A array are copied to the calling object elements [Index]..[Index+Length(A)-1]. An exception is raised if calling object array borders are overrun/underrun.

Note
Use this method for integer array only.