TSparseMtx.CopyTo Method

Overload List

#SignatureDescription
1procedure CopyTo(const Dst: TSparseMtx; const aFloatPrecision: TMtxFloatPrecision);Copies sparse matrix from Src to the calling object.
2procedure CopyTo(const Dst: TMtxVec);Copy and if needed convert values to Dst, but keep Dst.FloatPrecision.
└ indexed: procedure CopyTo(const Dst: TMtxVec; const DstIndex: Integer; const Index: Integer; Len: Integer);
3procedure CopyTo(const Dst: TMtxVec; const dstFloatPrecision: TMtxFloatPrecision);Copy and convert values to specified dstFloatPrecision.
4procedure CopyTo(const Dst: TMtxVecInt; const Rounding: TRounding);Copy and convert values to TVecInt.
└ indexed: procedure CopyTo(const Dst: TMtxVecInt; const Rounding: TRounding; DstIndex: Integer; Index: Integer; Len: Integer);

Overload 1: procedure CopyTo(const Dst: TSparseMtx; const aFloatPrecision: TMtxFloatPrecision);

Copies sparse matrix from Src to the calling object.

#NameTypeDescription
1DstTSparseMtx
2aFloatPrecisionTMtxFloatPrecision

Result: stored in self (calling object)

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

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

#NameTypeDescription
1DstTMtxVecsource TVec or TMtx

Result: stored in self (calling object)

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
1DstTMtxVecsource TVec or TMtx
2DstIndexIntegerdestination start index
3IndexIntegerstart index
4LenIntegerelement 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 TMtxVec.FloatPrecision properties of the destination object must be set explicitly. An exception is raised if array borders are overrun.

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

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 4: procedure CopyTo(const Dst: TMtxVecInt; const Rounding: TRounding);

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: procedure CopyTo(const Dst: TMtxVecInt; const Rounding: TRounding; DstIndex: Integer; Index: Integer; Len: Integer);

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

#NameTypeDescription
1DstTMtxVecIntsource TVecInt or TMtxInt
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 to Dst 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.