TSparseMtx.SetIt Method

function SetIt(Index: integer; const A: array of double): TMtxVec; overload; deprecated;

Sets object values.

#NameTypeDescription
1Indexintegerstart index
2Aarray of double

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

Remarks:

Set object values. Method call does not change object's size or TMtxVec.Complex property, but it does check for array overrun. The elements of A array are copied to the calling object elements, starting at Index. If the calling object is complex, then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).

Indexed: function SetIt(Index, aIndex, Len: integer; const A: array of double): TMtxVec; overload; deprecated;

The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index.

#NameTypeDescription
1Indexintegerstart index
2aIndexinteger
3Lenintegerelement count
4Aarray of double

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

Remarks:

If the calling object is complex, then real parts of complex numbers in the A array are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).