function GetCol(const Mtx: TMtxInt; Col: Integer): VectorInt;
Copies a column from matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Mtx | TMtxInt | |
| 2 | Col | Integer |
Returns: VectorInt
Examples
var a: TVecInt;
b: TMtxInt;
begin
CreateIt(a);
CreateIt(b);
try
b.SetIt(2,2,[1,2,
3,4]);
a.GetCol(b,0); // a now contains [1,3]
finally
FreeIt(a);
FreeIt(b);
end;
end;