XLL+ Class Library

matrix<T>::resize

Resize the matrix, optionally preserving existing values

[C++]
void resize(
   size_t rows,
   size_t cols,
   bool preserve,
   const T& def = T()
);

Parameters

rows

The new number of rows, which may be zero.

cols

The new number of columns, which may be zero.

preserve

Preserve existing values, in their current locations, if this is true. Otherwise set all values to default.

def

Default value used for new or cleared cells.

Examples

COper::ColToVector() & RowToVector() Example | COper::ToMatrix() Example

Requirements

Header: matrix.h

See Also

matrix<T> Class | matrix<T> Methods