MatrixInt::Resize Method

Overload List

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

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

Sizes the calling matrix to NewRows and NewCols.

#NameTypeDescription
1SrcTMtxInt *
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::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler

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

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

#NameTypeDescription
1NewRowsint
2NewColsint
Remarks:

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

See Also: MatrixInt::Size
Declared in Dew::Math::MatrixInt · Dew.Math/MtxExprInt.h · Cross-compiler