Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetIt(Index: Integer; const A: TDoubleArray): TMtxVec; | Sets object values. |
| 2 | function SetIt(ARows: Integer; ACols: Integer; AComplex: Boolean; const A: TDoubleArray): TMtx; | Sets matrix values. |
| 3 | function SetIt(Index: Integer; AIndex: Integer; Len: Integer; const A: TDoubleArray): TMtxVec; | The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index. |
Overload 1: function SetIt(Index: Integer; const A: TDoubleArray): TMtxVec;
Sets object values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | A | TDoubleArray |
Result: stored in self (calling object), returns self for chaining
Set object values. Method call does not change object's size or Matrix.Complex property, but it does check for array overrun. The elements of A array are copied to the calling object elements, starting at Index. If the calling object is complex, then real parts of complex numbers are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).
Overload 2: function SetIt(ARows: Integer; ACols: Integer; AComplex: Boolean; const A: TDoubleArray): TMtx;
Sets matrix values.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | ARows | Integer | |
| 2 | ACols | Integer | |
| 3 | AComplex | Boolean | |
| 4 | A | TDoubleArray |
Result: stored in self (calling object), returns self for chaining
Sets matrix values. This method gives you the possibility to pass large arrays of elements without having to declare constant arrays. Pass all elements in A array to the calling matrix. The Matrix.Rows and Matrix.Cols properties of the calling matrix are set to ARows and ACols and the Matrix.Complex property is set to AComplex. An exception is raised if the matrix size (ARows*ACols) does not match the number of complex numbers in A.
var A: Matrix;
begin
A.SetIt(2,2,False,[1,2,
2,4]);
end;
Overload 3: function SetIt(Index: Integer; AIndex: Integer; Len: Integer; const A: TDoubleArray): TMtxVec;
The elements of A array, starting at aIndex, are copied to the calling object elements, starting at Index.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Index | Integer | start index |
| 2 | AIndex | Integer | start index |
| 3 | Len | Integer | element count |
| 4 | A | TDoubleArray |
Result: stored in self (calling object), returns self for chaining
If the calling object is complex, then real parts of complex numbers in the A array are on even (0,2,4..) and imaginary parts on odd indexes.(1,3,5,..).