MatrixInt.Convert Method

TMtxVecInt Convert(TMtxVecInt Src, TIntPrecision DstIntPrecision)

Copy each of Vec elements to the calling object.

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2DstIntPrecisionTIntPrecision

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

Remarks:

The Size property of the calling object is set implicitly to match Vec object. The storage precision of the calling object is set to DstIntPrecision.

Indexed: TMtxVecInt Convert(TMtxVecInt Src, TIntPrecision DstIntPrecision, Int32 SrcIndex, Int32 Index, Int32 Len)

Copy Src elements [SrcIndex]..[SrcIndex+Len-1] in the calling object elements [Index]..[Index+Len-1].

#NameTypeDescription
1SrcTMtxVecIntsource TVecInt or TMtxInt
2DstIntPrecisionTIntPrecision
3SrcIndexInt32source start index
4IndexInt32start index
5LenInt32element count

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

Remarks:

Calling vector Dew.Math.MatrixInt.Size must be set explicitly. An exception is raised if array borders are overrun or underrun. If the precision of the calling does not match DstIntPrecision, an exception will be raised.