TMtx.CopyTo Method

Overload List

#SignatureDescription
1void CopyTo(TMtxVec Dst)Copy and if needed convert values to Dst, but keep Dst.FloatPrecision.
└ indexed: void CopyTo(TMtxVec Dst, Int32 DstIndex, Int32 Index, Int32 Len)
2void CopyTo(TMtxVec Dst, TMtxFloatPrecision dstFloatPrecision)Copy and convert values to specified dstFloatPrecision.
3void CopyTo(TMtxVecInt Dst, TRounding Rounding)Copy and convert values to TVecInt.
└ indexed: void CopyTo(TMtxVecInt Dst, TRounding Rounding, Int32 DstIndex, Int32 Index, Int32 Len)

Overload 1: void CopyTo(TMtxVec Dst)

Copy and if needed convert values to Dst, but keep Dst.FloatPrecision.

#NameTypeDescription
1DstTMtxVecsource TVec or TMtx

Result: stored in self (calling object)

Indexed: void CopyTo(TMtxVec Dst, Int32 DstIndex, Int32 Index, Int32 Len)

Copy and convert values to Dst.FloatPrecision at indexes [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTMtxVecsource TVec or TMtx
2DstIndexInt32destination start index
3IndexInt32start index
4LenInt32element count

Result: stored in self (calling object)

Remarks:

Applies appropriate conversion and copy data from Src. The results are stored in Dst object elements [Index]...[Index+Len-1]. Size and Dew.Math.TMtxVec.FloatPrecision properties of the destination object must be set explicitly. An exception is raised if array borders are overrun.

Overload 2: void CopyTo(TMtxVec Dst, TMtxFloatPrecision dstFloatPrecision)

Copy and convert values to specified dstFloatPrecision.

#NameTypeDescription
1DstTMtxVecsource TVec or TMtx
2dstFloatPrecisionTMtxFloatPrecision

Result: stored in self (calling object)

Remarks:

Dst will be sized to hold all calling object data in specified dstFloatPrecision. The single/double and Complex/Not Complex conversion cant be handled concurrently.

Overload 3: void CopyTo(TMtxVecInt Dst, TRounding Rounding)

Copy and convert values to TVecInt.

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2RoundingTRounding

Result: stored in self (calling object)

Remarks:

Applies appropriate conversion and copy data to TVecInt. The value TVecInt.IntPrecision is preserved.

Indexed: void CopyTo(TMtxVecInt Dst, TRounding Rounding, Int32 DstIndex, Int32 Index, Int32 Len)

Copy and convert values to TVecInt at indexes [DstIndex]...[DstIndex+Len-1].

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
2RoundingTRounding
3DstIndexInt32destination start index
4IndexInt32start index
5LenInt32element count

Result: stored in self (calling object)

Remarks:

Applies appropriate conversion and copy data from TVecInt. The results are stored in to Dst object elements [Index]...[Index+Len-1]. Size and Dew.Math.TMtxVecInt.IntPrecision properties of the destination object must be set explicitly. An exception is raised if array borders are overrun.