TMtxSmallInt.CopyToArray Method

Overload List

#SignatureDescription
1procedure CopyToArray(var Dst: T2DByteArray);Copies all matrix values to a 2D array.
2procedure CopyToArray(var Dst: T2DSmallIntArray);Copies all matrix values to a 2D array.
3procedure CopyToArray(var Dst: T2DIntegerArray);Copies matrix values to a 2D array.
4function CopyToArray(var Dst: TCplxArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to complex double precision numbers.
└ indexed: function CopyToArray(var Dst: TCplxArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
5function CopyToArray(var Dst: TSCplxArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to complex double precision numbers.
└ indexed: function CopyToArray(var Dst: TSCplxArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
6function CopyToArray(var Dst: TByteArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 1 byte unsigned integer numbers.
└ indexed: function CopyToArray(var Dst: TByteArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
7function CopyToArray(var Dst: TSmallIntArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts values to to 2 byte signed integer numbers.
└ indexed: function CopyToArray(var Dst: TSmallIntArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
8function CopyToArray(var Dst: TIntegerArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 4 byte signed integer numbers.
└ indexed: function CopyToArray(var Dst: TIntegerArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
9function CopyToArray(var Dst: TWordArray): TMtxVecInt;Copies values from the calling object to the Dst array and converts data to 2 byte unsigned integer numbers.
└ indexed: function CopyToArray(var Dst: TWordArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
10function CopyToArray(var Dst: TDoubleArray): TMtxVecBase;Copy values to Dst array. The size of the array is set automatically.
└ indexed: function CopyToArray(var Dst: TDoubleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;
11function CopyToArray(var Dst: TSingleArray): TMtxVecBase;Copies the calling object data to an array of single precision floating point data.
└ indexed: function CopyToArray(var Dst: TSingleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Overload 1: procedure CopyToArray(var Dst: T2DByteArray);

Copies all matrix values to a 2D array.

#NameTypeDescription
1DstT2DByteArray

Result: stored in self (calling object)

Overload 2: procedure CopyToArray(var Dst: T2DSmallIntArray);

Copies all matrix values to a 2D array.

#NameTypeDescription
1DstT2DSmallIntArray

Result: stored in self (calling object)

Overload 3: procedure CopyToArray(var Dst: T2DIntegerArray);

Copies matrix values to a 2D array.

#NameTypeDescription
1DstT2DIntegerArray

Result: stored in self (calling object)

Remarks:

Copies all matrix values to a 2D array.

Overload 4: function CopyToArray(var Dst: TCplxArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to complex double precision numbers.

#NameTypeDescription
1DstTCplxArray

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

Remarks:

Consecutive elements are converted to real and imaginary parts.

Indexed: function CopyToArray(var Dst: TCplxArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex + Len/2 - 1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to complex double precision floating point values. Consecutive elements become real and imaginary parts. Index and Len apply to the integer source array and DstIndex applies to the destination complex array.

Overload 5: function CopyToArray(var Dst: TSCplxArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to complex double precision numbers.

#NameTypeDescription
1DstTSCplxArray

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

Remarks:

Consecutive elements are converted to real and imaginary parts.

Indexed: function CopyToArray(var Dst: TSCplxArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex + Len/2 - 1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to complex double precision floating point values. Consecutive elements become real and imaginary parts. Index and Len apply to the integer source array and DstIndex applies to the destination complex array.

Overload 6: function CopyToArray(var Dst: TByteArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 1 byte unsigned integer numbers.

#NameTypeDescription
1DstTByteArray

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

Remarks:

Values exceeding the range of a 1 byte unsigned integer type are clipped.

Indexed: function CopyToArray(var Dst: TByteArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to 1 byte unsigned integers. Values exceeding the range of 1 byte unsigned integer type are clipped.

Overload 7: function CopyToArray(var Dst: TSmallIntArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts values to to 2 byte signed integer numbers.

#NameTypeDescription
1DstTSmallIntArray

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

Indexed: function CopyToArray(var Dst: TSmallIntArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst 2 byte signed integer array at positions [DstIndex]...[DstIndex+Len-1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to 2 byte signed integers. Values exceeding the range of a 2 byte signed integer type are clipped.

Overload 8: function CopyToArray(var Dst: TIntegerArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 4 byte signed integer numbers.

#NameTypeDescription
1DstTIntegerArray

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

Indexed: function CopyToArray(var Dst: TIntegerArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to 4 byte signed integers. Values exceeding the range of a 4 byte signed integer type are clipped.

Overload 9: function CopyToArray(var Dst: TWordArray): TMtxVecInt;

Copies values from the calling object to the Dst array and converts data to 2 byte unsigned integer numbers.

#NameTypeDescription
1DstTWordArray

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

Remarks:

Values exceeding the range of a 2 byte unsigned integer type are clipped.

Indexed: function CopyToArray(var Dst: TWordArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copy integer values from the calling object [Index]..[Index+len-1] to the Dst integer array at positions [DstIndex]...[DstIndex+Len-1].

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

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

Remarks:

The size of the Dst array is not changed. The method converts calling object values to 2 byte unsigned integers. Values exceeding the range of a 2 byte unsigned integer type are clipped.

Overload 10: function CopyToArray(var Dst: TDoubleArray): TMtxVecBase;

Copy values to Dst array. The size of the array is set automatically.

#NameTypeDescription
1DstTDoubleArray

Returns: TMtxVecBase

Remarks:

If the calling object is complex, the size of the Dst array will be equal to 2*TMtxVecBase.Length. If the calling object is not complex an exception will be raised.

Indexed: function CopyToArray(var Dst: TDoubleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst array at positions [DstIndex]...[DstIndex+Len-1].

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

Returns: TMtxVecBase

Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.

Overload 11: function CopyToArray(var Dst: TSingleArray): TMtxVecBase;

Copies the calling object data to an array of single precision floating point data.

#NameTypeDescription
1DstTSingleArray

Returns: TMtxVecBase

Remarks:

Any values exceeding the range are clipped.

Indexed: function CopyToArray(var Dst: TSingleArray; DstIndex: Integer; Index: Integer; Len: Integer): TMtxVecBase;

Copy real or complex values from the calling object [Index]..[Index+len-1] to the Dst single precision floating point array at positions [DstIndex]...[DstIndex+Len-1].

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

Returns: TMtxVecBase

Remarks:

The size of the Dst array is not changed. If the calling object is complex, the Index and Len parameters define the number of complex elements.