Matrix::SetCol Method

Overload List

#SignatureDescription
1TMtx *SetCol(TDenseMtxVec *Vec, int Col) const;Copies values from vector to matrix column.
2TMtx *SetCol(TDenseMtxVec *Vec, int VecIndex, int Row, int Col, int Len) const;Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col].

Overload 1: TMtx *SetCol(TDenseMtxVec *Vec, int Col) const;

Copies values from vector to matrix column.

#NameTypeDescription
1VecTDenseMtxVec *
2Colint
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.

See Also: Matrix::SetRow
Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler

Overload 2: TMtx *SetCol(TDenseMtxVec *Vec, int VecIndex, int Row, int Col, int Len) const;

Copy vector Vec elements [VecIndex]..[VecIndex+Len-1] to the calling matrix elements [Row,Col]..[Row+Len-1,Col].

#NameTypeDescription
1VecTDenseMtxVec *
2VecIndexint
3Rowint
4Colint
5Lenint
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.

Declared in Dew::Math::Matrix · Dew.Math/MtxExpr.h · Cross-compiler