TMtxByte.CopyFromArray Method

Overload List

#SignatureDescription
1procedure CopyFromArray(const Src: T2DByteArray);Sizes the matrix to match the size of the 2D array and copies all the values.
2procedure CopyFromArray(const Src: T2DSmallIntArray);Sizes the matrix to match the size of the 2D array and copies all the values.
3procedure CopyFromArray(const Src: T2DIntegerArray);Copies the matrix from a 2D array.
4function CopyFromArray(const Src: TCplxArray; Rounding: TRounding): TMtxVecInt;Copies values from a real Src array.
└ indexed: function CopyFromArray(const Src: TCplxArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
5function CopyFromArray(const Src: TByteArray): TMtxVecInt;Copies values from a 1 byte unsigned integer type Src array.
└ indexed: function CopyFromArray(const Src: TByteArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
6function CopyFromArray(const Src: TDoubleArray; Rounding: TRounding): TMtxVecInt;Copies values from a real Src array.
└ indexed: function CopyFromArray(const Src: TDoubleArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
7function CopyFromArray(const Src: TSmallIntArray): TMtxVecInt;Copies values from an 2 byte signed integer type Src array.
└ indexed: function CopyFromArray(const Src: TSmallIntArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
8function CopyFromArray(const Src: TIntegerArray): TMtxVecInt;Copies values from an integer type Src array.
└ indexed: function CopyFromArray(const Src: TIntegerArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
9function CopyFromArray(const Src: TSingleArray; Rounding: TRounding): TMtxVecInt;Copies values from a real single precision floating point Src array.
└ indexed: function CopyFromArray(const Src: TSingleArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;
10function CopyFromArray(const Src: TWordArray): TMtxVecInt;Copies values from a real Src array.
└ indexed: function CopyFromArray(const Src: TWordArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Overload 1: procedure CopyFromArray(const Src: T2DByteArray);

Sizes the matrix to match the size of the 2D array and copies all the values.

#NameTypeDescription
1SrcT2DByteArray

Result: stored in self (calling object)

Overload 2: procedure CopyFromArray(const Src: T2DSmallIntArray);

Sizes the matrix to match the size of the 2D array and copies all the values.

#NameTypeDescription
1SrcT2DSmallIntArray

Result: stored in self (calling object)

Overload 3: procedure CopyFromArray(const Src: T2DIntegerArray);

Copies the matrix from a 2D array.

#NameTypeDescription
1SrcT2DIntegerArray

Result: stored in self (calling object)

Remarks:

Sizes the matrix to match the size of the 2D array and copies all the values.

Overload 4: function CopyFromArray(const Src: TCplxArray; Rounding: TRounding): TMtxVecInt;

Copies values from a real Src array.

#NameTypeDescription
1SrcTCplxArray
2RoundingTRounding

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

Remarks:

The size of the calling object is set implicitely. The integer precision of the calling object is preserved.

Indexed: function CopyFromArray(const Src: TCplxArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from the double precision floating point Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+2*Len-1].

#NameTypeDescription
1SrcTCplxArray
2RoundingTRounding
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 5: function CopyFromArray(const Src: TByteArray): TMtxVecInt;

Copies values from a 1 byte unsigned integer type Src array.

#NameTypeDescription
1SrcTByteArray

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

Remarks:

The size property of the calling object is set implicitely.

Indexed: function CopyFromArray(const Src: TByteArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from a 1 byte unsigned integer type Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+len-1].

#NameTypeDescription
1SrcTByteArray
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 6: function CopyFromArray(const Src: TDoubleArray; Rounding: TRounding): TMtxVecInt;

Copies values from a real Src array.

#NameTypeDescription
1SrcTDoubleArray
2RoundingTRounding

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

Remarks:

The size of the calling object is set implicitely. The integer precision of the calling object is preserved.

Indexed: function CopyFromArray(const Src: TDoubleArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from the double precision floating point Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+len-1].

#NameTypeDescription
1SrcTDoubleArray
2RoundingTRounding
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 7: function CopyFromArray(const Src: TSmallIntArray): TMtxVecInt;

Copies values from an 2 byte signed integer type Src array.

#NameTypeDescription
1SrcTSmallIntArray

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

Remarks:

The size property of the calling object is set implicitely. The integer precision of the calling object is preserved.

Indexed: function CopyFromArray(const Src: TSmallIntArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from a 2 byte signed integer type Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+len-1].

#NameTypeDescription
1SrcTSmallIntArray
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 8: function CopyFromArray(const Src: TIntegerArray): TMtxVecInt;

Copies values from an integer type Src array.

#NameTypeDescription
1SrcTIntegerArray

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

Remarks:

The size property of the calling object is set implicitely. The integer precision of the calling object is preserved.

Indexed: function CopyFromArray(const Src: TIntegerArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from a 4 byte signed integer type Src array [SrcIndex]..[SrcIndex+Len-1].

#NameTypeDescription
1SrcTIntegerArray
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

Store the results to the calling object values [Index]..[Index+len-1]. The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 9: function CopyFromArray(const Src: TSingleArray; Rounding: TRounding): TMtxVecInt;

Copies values from a real single precision floating point Src array.

#NameTypeDescription
1SrcTSingleArray
2RoundingTRounding

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

Remarks:

The size property of the calling object is set implicitely.

Indexed: function CopyFromArray(const Src: TSingleArray; Rounding: TRounding; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from the single precision floating point Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+len-1].

#NameTypeDescription
1SrcTSingleArray
2RoundingTRounding
3SrcIndexIntegersource start index
4IndexIntegerstart index
5LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.

Overload 10: function CopyFromArray(const Src: TWordArray): TMtxVecInt;

Copies values from a real Src array.

#NameTypeDescription
1SrcTWordArray

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

Remarks:

The size of the calling object is set implicitely. The precision is preserved.

Indexed: function CopyFromArray(const Src: TWordArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVecInt;

Copies values from a 2 byte unsigned integer type Src array [SrcIndex]..[SrcIndex+Len-1] to the calling object values [Index]..[Index+len-1].

#NameTypeDescription
1SrcTWordArray
2SrcIndexIntegersource start index
3IndexIntegerstart index
4LenIntegerelement count

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

Remarks:

The size of the calling object is not changed. If the array border are overrun an exception will be raised.