VectorInt GetRow(TMtxInt Mtx, Int32 Row)
Copies a row from matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | source TMtxInt |
| 2 | Row | Int32 |
Returns: VectorInt
Examples
TVecInt a;
TMtxInt b;
MtxVec.CreateIt(out a);
MtxVec.CreateIt(out b);
try
{
b.SetIt(2,2,[1,2,
3,4]);
a.GetRow(b,0); // a now contains new double[] {1,2}
}
finally
{
MtxVec.FreeIt(ref a);
MtxVec.FreeIt(ref b);
}