Vector.SetInteger Method

Overload List

#SignatureDescription
1function SetInteger(AComplex: Boolean; const A: TIntegerArray): TVec;Sets vector values (integer).
2function SetInteger(Index: Integer; const A: TIntegerArray): TMtxVec;Sets object values (integer).

Overload 1: function SetInteger(AComplex: Boolean; const A: TIntegerArray): TVec;

Sets vector values (integer).

#NameTypeDescription
1AComplexBoolean
2ATIntegerArray

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

Remarks:

Sets the Vector.Length property of the calling vector to (High(A)+1) and the Vector.Complex property to AComplex. The integer 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 integer array only.

See Also: Vector.SetIt, Vector.SetDouble, Vector.SetCplx, Vector.SetSingle

Overload 2: function SetInteger(Index: Integer; const A: TIntegerArray): TMtxVec;

Sets object values (integer).

#NameTypeDescription
1IndexIntegerstart index
2ATIntegerArray

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

Remarks:

The integer 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.

See Also: Vector.SetIt, Vector.SetDouble, Vector.SetCplx, Vector.SetSingle