Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TVec GetRow(TMtx Mtx, Int32 aRow) | Copies a row from matrix. |
| 2 | TVec GetRow(TMtx Mtx, Int32 aRow, Int32 aCol, Int32 Len) | Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector. |
| 3 | TVec GetRow(TMtx Mtx, Int32 aRow, Int32 aCol, Int32 Index, Int32 Len) | Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector elements [Index]..[Index+Len-1]. |
Overload 1: TVec GetRow(TMtx Mtx, Int32 aRow)
Copies a row from matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | source TMtx |
| 2 | aRow | Int32 |
Result: stored in self (calling object), returns self for chaining
Copies the Row-th row from Mtx matrix to calling vector. The Dew.Math.Vector.Length and Dew.Math.Vector.Complex properties of calling vector are adjusted automatically. An exception is raised if condition checking is enabled and Row is greater than Mtx.Rows-1.
Vector a;
Matrix b;
b.SetIt(2,2,false,[1,2,
3,4]);
a.GetRow(b,0); // a now contains new double[] {1,2}
Overload 2: TVec GetRow(TMtx Mtx, Int32 aRow, Int32 aCol, Int32 Len)
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | source TMtx |
| 2 | aRow | Int32 | |
| 3 | aCol | Int32 | |
| 4 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
The Dew.Math.Vector.Length and Dew.Math.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: TVec GetRow(TMtx Mtx, Int32 aRow, Int32 aCol, Int32 Index, Int32 Len)
Copy the Row-th column elements [Col]..[Col+Len-1] to calling vector elements [Index]..[Index+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtx | source TMtx |
| 2 | aRow | Int32 | |
| 3 | aCol | Int32 | |
| 4 | Index | Int32 | start index |
| 5 | Len | Int32 | element count |
Result: stored in self (calling object), returns self for chaining
The Dew.Math.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.