Resize the matrix, optionally preserving existing values
[C++]
void resize(
size_t rows,
size_t cols,
bool preserve,
const T& def = T()
);
The new number of rows, which may be zero.
The new number of columns, which may be zero.
Preserve existing values, in their current locations, if this is true. Otherwise set all values to default.
Default value used for new or cleared cells.
Header: matrix.h