TSparseMtx.SetIt Method

TMtxVec SetIt(Int32 Index, Double[] A)

Sets object values.

#NameTypeDescription
1IndexInt32start index
2ADouble[]

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

Remarks:

Set object values. Method call does not change object's size or Dew.Math.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: TMtxVec SetIt(Int32 Index, Int32 aIndex, Int32 Len, Double[] A)

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

#NameTypeDescription
1IndexInt32start index
2aIndexInt32
3LenInt32element count
4ADouble[]

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,..).