Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtx CopyVec(TVec Vec, Int32 NrRows) | Copies values from vector to a matrix. |
| 2 | TMtx CopyVec(TVec Vec, Int32 VecIndex, Int32 Len, Int32 Row, Int32 Col) | Copy Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements starting with [Row,Col]. |
Overload 1: TMtx CopyVec(TVec Vec, Int32 NrRows)
Copies values from vector to a matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec | source TVec |
| 2 | NrRows | Int32 |
Result: stored in self (calling object), returns self for chaining
Copy all Vec elements to the calling matrix. Set the calling matrix Dew.Math.Matrix.Rows property to NrRows. Set the calling matrix Dew.Math.Matrix.Cols property to Vec.Length div NrRow (Length = Rows*Cols). The calling matrix Dew.Math.Matrix.Complex property is adjusted automatically. An exception is raised if Vec.Length mod NrRows <> 0.
Matrix A;
Vector v;
v.SetIt(true,new double[] {1, 0, 2, -1, 5, 1.2}) ;
A.CopyVec(v);
Overload 2: TMtx CopyVec(TVec Vec, Int32 VecIndex, Int32 Len, Int32 Row, Int32 Col)
Copy Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements starting with [Row,Col].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVec | source TVec |
| 2 | VecIndex | Int32 | |
| 3 | Len | Int32 | element count |
| 4 | Row | Int32 | |
| 5 | Col | Int32 |
Result: stored in self (calling object), returns self for chaining
An exception is raised if Dew.Math.Matrix.ConditionCheck is true and bounds are overrun or if Dew.Math.Matrix.Complex properties of the calling matrix and Vec do not match.