Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt SetRow(TMtxVecInt Vec, Int32 Row) | Copies values from vector to matrix row. |
| 2 | TMtxInt SetRow(TMtxVecInt Vec, Int32 VecIndex, Int32 Row, Int32 Col, Int32 Len) | Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row,Col+Len-1]. |
Overload 1: TMtxInt SetRow(TMtxVecInt Vec, Int32 Row)
Copies values from vector to matrix row.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TMtxVecInt | source TVecInt or TMtxInt |
| 2 | Row | Int32 |
Result: stored in self (calling object), returns self for chaining
Remarks:
Copy all Vec elements to the calling matrix Row row. The Dew.Math.TMtxVecInt.IntPrecision property of the calling matrix is adjusted automatically. An exception is raised, if array bounds are overrun.
Examples
TMtxInt A;
TVecInt V;
MtxVec.CreateIt(out A);
MtxVec.CreateIt(out V);
try
{
A.Size(1,2);
V.SetIt(new double[] {1,2, 2,4});
A.SetCol(V,0);
}
finally
{
MtxVec.FreeIt(ref V);
MtxVec.FreeIt(ref A);
}
See Also: MatrixInt.SetCol
Overload 2: TMtxInt SetRow(TMtxVecInt Vec, Int32 VecIndex, Int32 Row, Int32 Col, Int32 Len)
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 | source TVecInt or TMtxInt |
| 2 | VecIndex | Int32 | |
| 3 | Row | Int32 | |
| 4 | Col | Int32 | |
| 5 | Len | Int32 | 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.