Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function GetCol(const Mtx: TMtx; aCol: Integer): TVec; | Copies a column from matrix. |
| 2 | function GetCol(const Mtx: TMtx; aRow: Integer; aCol: Integer; Len: Integer): TVec; | Copy the Col-th column elements [Row]..[Row+Len-1] to calling vector. |
| 3 | function GetCol(const Mtx: TMtx; aRow: Integer; aCol: Integer; Index: Integer; Len: Integer): TVec; | Copy the Col-th column elements [Row]..[Row+Len-1] to calling vector elements [Index]..[Index+Len-1]. |
Overload 1: function GetCol(const Mtx: TMtx; aCol: Integer): TVec;
Copies a column from matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | |
| 2 | aCol | Integer |
Result: stored in self (calling object), returns self for chaining
Copies the Col-th column from Mtx matrix to calling vector. The Vector.Length and Vector.Complex properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Col is greater than Mtx.Cols-1.
var a: Vector;
b: Matrix;
begin
b.SetIt(2,2,False,[1,2,
3,4]);
a.GetCol(b,0); // a now contains [1,3]
end;
Overload 2: function GetCol(const Mtx: TMtx; aRow: Integer; aCol: Integer; Len: Integer): TVec;
Copy the Col-th column elements [Row]..[Row+Len-1] to calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | |
| 2 | aRow | Integer | |
| 3 | aCol | Integer | |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
The Vector.Length and Vector.Complex properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and column array borders are overrun.
Overload 3: function GetCol(const Mtx: TMtx; aRow: Integer; aCol: Integer; Index: Integer; Len: Integer): TVec;
Copy the Col-th column elements [Row]..[Row+Len-1] to calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | |
| 2 | aRow | Integer | |
| 3 | aCol | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
The Vector.Complex property of calling vector must be set explicitly. An exception is raised if condition checking is enabled and column array borders are overrun.