Matrix::Resize Method

Overload List

#SignatureDescription
1TMtx *Resize(int NewRows, int NewCols) const;Resizes the matrix, while preserving the values in already allocated memory.
2TMtx *Resize(TMtx *Src, int NewRows, int NewCols) const;Performs resize of the calling matrix to NewRows and NewCols.

Overload 1: TMtx *Resize(int NewRows, int NewCols) const;

Resizes the matrix, while preserving the values in already allocated memory.

#NameTypeDescription
1NewRowsint
2NewColsint
Remarks:

Sets the Matrix::Rows property to NewRows, Matrix::Cols property to NewCols, while preserving the values in already allocated memory.

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

Overload 2: TMtx *Resize(TMtx *Src, int NewRows, int NewCols) const;

Performs resize of the calling matrix to NewRows and NewCols.

#NameTypeDescription
1SrcTMtx *
2NewRowsint
3NewColsint
Remarks:

Copies the Src matrix values to the calling matrix. The elements outside the newly created matrix size are not referenced.

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