Vector.CopyTo Method

Overload List

#SignatureDescription
1procedure CopyTo(const Dst: TMtxVec);Copy and if needed convert values to Dst.
└ indexed: procedure CopyTo(const Dst: TMtxVec; const DstIndex: Integer; const Index: Integer; Len: Integer);
2procedure CopyTo(const Dst: TMtxVec; const dstFloatPrecision: TMtxFloatPrecision);Copy and convert values to specified dstFloatPrecision.
3procedure CopyTo(const Dst: TVecInt; Rounding: TRounding);Copy and convert values to TVecInt.
└ indexed: procedure CopyTo(const Dst: TVecInt; Rounding: TRounding; DstIndex: Integer; Index: Integer; Len: Integer);

Overload 1: procedure CopyTo(const Dst: TMtxVec);

Copy and if needed convert values to Dst.

#NameTypeDescription
1DstTMtxVec

Result: stored in self (calling object)

Remarks:

Existing value of Dst.FloatPrecision is preserved.

Indexed: procedure CopyTo(const Dst: TMtxVec; const DstIndex: Integer; const Index: Integer; Len: Integer);

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

#NameTypeDescription
1DstTMtxVec
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement count

Result: stored in self (calling object)

Remarks:

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

Overload 2: procedure CopyTo(const Dst: TMtxVec; const dstFloatPrecision: TMtxFloatPrecision);

Copy and convert values to specified dstFloatPrecision.

#NameTypeDescription
1DstTMtxVec
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: procedure CopyTo(const Dst: TVecInt; Rounding: TRounding);

Copy and convert values to TVecInt.

#NameTypeDescription
1DstTVecInt
2RoundingTRounding

Result: stored in self (calling object)

Remarks:

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

Indexed: procedure CopyTo(const Dst: TVecInt; Rounding: TRounding; DstIndex: Integer; Index: Integer; Len: Integer);

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

#NameTypeDescription
1DstTVecInt
2RoundingTRounding
3DstIndexIntegerdestination start index
4IndexIntegerstart index
5LenIntegerelement count

Result: stored in self (calling object)

Remarks:

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