Overload List
| # | Signature | Description |
|---|---|---|
| 1 | function SetCol(const Vec: TDenseMtxVec; Col: Integer): TMtx; | Copies values from vector to matrix column. |
| 2 | function SetCol(const Vec: TDenseMtxVec; VecIndex: Integer; Row: Integer; Col: Integer; Len: Integer): TMtx; | Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col]. |
Overload 1: function SetCol(const Vec: TDenseMtxVec; Col: Integer): TMtx;
Copies values from vector to matrix column.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TDenseMtxVec | |
| 2 | Col | Integer |
Result: stored in self (calling object), returns self for chaining
Remarks:
Copy all Vec elements to the calling matrix Col column. The Matrix.Complex property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.
Examples
var A: Matrix;
V: Vector;
begin
A.Size(2,1,True);
V.SetIt(True,[1,2, 2,4]); // complex vector
A.SetCol(V,0);
end;
See Also: Matrix.SetRow
Overload 2: function SetCol(const Vec: TDenseMtxVec; VecIndex: Integer; Row: Integer; Col: Integer; Len: Integer): TMtx;
Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TDenseMtxVec | |
| 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. An exception is raised, if Vec and the calling matrix complex properties do not match.