TMtx::CopyVec Method

Overload List

#SignatureDescription
1TMtx *CopyVec(TVec *Vec, int NrRows);Copies values from vector to a matrix.
2TMtx *CopyVec(TVec *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: TMtx *CopyVec(TVec *Vec, int NrRows);

Copies values from vector to a matrix.

#NameTypeDescription
1VecTVec *
2NrRowsint
Remarks:

Copy all Vec elements to the calling matrix. Set the calling matrix TMtx::Rows property to NrRows. Set the calling matrix TMtx::Cols property to Vec.Length div NrRow (Length = Rows*Cols). The calling matrix TMtx::Complex property is adjusted automatically. An exception is raised if Vec.Length mod NrRows <> 0.

See Also: TMtx::Copy, TVec::CopyMtx
Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler

Overload 2: TMtx *CopyVec(TVec *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].

#NameTypeDescription
1VecTVec *
2VecIndexint
3Lenint
4Rowint
5Colint
Remarks:

An exception is raised if TMtx::ConditionCheck is true and bounds are overrun or if TMtx::Complex properties of the calling matrix and Vec do not match.

Declared in Dew::Math::TMtx · Dew.Math/MtxVec.h · Cross-compiler