Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function GetRow(const Mtx: TMtxInt; Row: Integer): TVecInt; | Copies a row from matrix. |
| 2 | function GetRow(const Mtx: TMtxInt; Row: Integer; Col: Integer; Len: Integer): TVecInt; | Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector. |
| 3 | function GetRow(const Mtx: TMtxInt; Row: Integer; Col: Integer; Index: Integer; Len: Integer): TVecInt; | Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector elements [Index]..[Index+Len-1]. |
Overload 1: function GetRow(const Mtx: TMtxInt; Row: Integer): TVecInt;
Copies a row from matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source TMtxInt |
| 2 | Row | Integer |
Result: stored in self (calling object), returns self for chaining
Copies the Row-th row from Mtx matrix to calling vector. The TMtxVecBase.Length and TMtxVecInt.IntPrecision properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Row is greater than Mtx.Rows-1.
var a: TVecInt;
b: TMtxInt;
begin
CreateIt(a);
CreateIt(b);
try
b.SetIt(2,2,[1,2,
3,4]);
a.GetRow(b,0); // a now contains [1,2]
finally
FreeIt(a);
FreeIt(b);
end;
end;
Overload 2: function GetRow(const Mtx: TMtxInt; Row: Integer; Col: Integer; Len: Integer): TVecInt;
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source TMtxInt |
| 2 | Row | Integer | |
| 3 | Col | Integer | |
| 4 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
The TMtxVecBase.Length and TMtxVecInt.IntPrecision 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 GetRow(const Mtx: TMtxInt; Row: Integer; Col: Integer; Index: Integer; Len: Integer): TVecInt;
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source TMtxInt |
| 2 | Row | Integer | |
| 3 | Col | Integer | |
| 4 | Index | Integer | start index |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
The TMtxVecInt.IntPrecision property of calling vector must be set explicitly. An exception is raised if condition checking is enabled and column array borders are overrun.