Matrix.CopyFromArray Method

Overload List

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

Overload 1: function CopyFromArray(const Src: TCplxArray): TMtxVec;

Copies values from an array.

#NameTypeDescription
1SrcTCplxArray

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

Remarks:

Copies values from a complex array. The size and Matrix.Complex properties of the calling object are set implicitely.

See Also: Matrix.Copy, Matrix.CopyTo, Matrix.Round, Matrix.Trunc, Matrix.CopyToArray

Indexed: function CopyFromArray(const Src: TCplxArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

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

#NameTypeDescription
1SrcTCplxArray
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 2: procedure CopyFromArray(const Src: T2DCplxArray);

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

#NameTypeDescription
1SrcT2DCplxArray

Result: stored in self (calling object)

Overload 3: function CopyFromArray(const Src: TByteArray): TMtxVec;

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 and Matrix.Complex properties of the calling object are set implicitely.

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

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 4: function CopyFromArray(const Src: TDoubleArray): TMtxVec;

Copies values from a real Src array.

#NameTypeDescription
1SrcTDoubleArray

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

Remarks:

The size and Matrix.Complex properties of the calling object are set implicitely.

Indexed: function CopyFromArray(const Src: TDoubleArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

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
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 5: procedure CopyFromArray(const Src: T2DDoubleArray);

Copies the matrix from a 2D array.

#NameTypeDescription
1SrcT2DDoubleArray

Result: stored in self (calling object)

Remarks:

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

Overload 6: function CopyFromArray(const Src: TSmallIntArray): TMtxVec;

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 and Matrix.Complex properties of the calling object are set implicitely.

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

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 7: function CopyFromArray(const Src: TIntegerArray): TMtxVec;

Copies values from an integer type Src array.

#NameTypeDescription
1SrcTIntegerArray

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

Remarks:

The size and Matrix.Complex properties of the calling object are set implicitely.

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

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

#NameTypeDescription
1SrcTIntegerArray
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: TSingleArray): TMtxVec;

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

#NameTypeDescription
1SrcTSingleArray

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

Remarks:

The size and Matrix.Complex properties of the calling object are set implicitely.

Indexed: function CopyFromArray(const Src: TSingleArray; SrcIndex: Integer; Index: Integer; Len: Integer): TMtxVec;

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
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.