Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetRow(const Vec: TMtxVecInt; Row: Integer): TMtxInt; | Copies values from vector to matrix row. |
| 2 | function SetRow(const Vec: TMtxVecInt; VecIndex: Integer; Row: Integer; Col: Integer; Len: Integer): TMtxInt; | Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row,Col+Len-1]. |
Overload 1: function SetRow(const Vec: TMtxVecInt; Row: Integer): TMtxInt;
Copies values from vector to matrix row.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | |
| 2 | Row | Integer |
Result: stored in self (calling object), returns self for chaining
Remarks:
Copy all Vec elements to the calling matrix Row row. The TMtxVecInt.IntPrecision property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.
Examples
var A: TMtxInt;
V: TVecInt;
begin
CreateIt(A);
CreateIt(V);
try
A.Size(1,2);
V.SetIt([1,2, 2,4]);
A.SetCol(V,0);
finally
FreeIt(V);
FreeIt(A);
end;
end;
See Also: MatrixInt.SetCol
Overload 2: function SetRow(const Vec: TMtxVecInt; VecIndex: Integer; Row: Integer; Col: Integer; Len: Integer): TMtxInt;
Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row,Col+Len-1].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | |
| 2 | VecIndex | Integer | |
| 3 | Row | Integer | |
| 4 | Col | Integer | |
| 5 | Len | Integer | element count |
Result: stored in self (calling object), returns self for chaining
Remarks:
An exception is raised if condition checking is enabled and array bounds are overrun.