Overload List
| # | Signature | Description |
|---|---|---|
| 1 | TMtxInt *CopyVec(TVecInt *Vec, int NrRows); | Copies values from vector to a matrix. |
| 2 | TMtxInt *CopyVec(TVecInt *Vec, int VecIndex, int Len, int Row, int Col); | Copy Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements starting with [Row,Col]. |
Overload 1: TMtxInt *CopyVec(TVecInt *Vec, int NrRows);
Copies values from vector to a matrix.
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVecInt * | |
| 2 | NrRows | int |
Remarks:
Copy all Vec elements to the calling matrix. Set the calling matrix TMtxSmallInt::Rows property to NrRows. Set the calling matrix TMtxSmallInt::Cols property to Vec.Length div NrRow (Length = Rows*Cols). The calling matrix TMtxSmallInt::IntPrecision property is adjusted automatically. An exception is raised if Vec.Length mod NrRows <> 0.
See Also: TMtxSmallInt::Copy, TVec::CopyMtx
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler
Overload 2: TMtxInt *CopyVec(TVecInt *Vec, int VecIndex, int Len, int Row, int Col);
Copy Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements starting with [Row,Col].
| # | Name | Type | Description |
|---|---|---|---|
| 1 | Vec | TVecInt * | |
| 2 | VecIndex | int | |
| 3 | Len | int | |
| 4 | Row | int | |
| 5 | Col | int |
Remarks:
An exception is raised if TMtxSmallInt::ConditionCheck is true and bounds are overrun or if TMtxSmallInt::IntPrecision properties of the calling matrix and Vec do not match.
Declared in Dew::Math::TMtxInt · Dew.Math/MtxVecInt.h · Cross-compiler