XLL+ Class Library (6.3)

matrix<T>::resize

Resize the matrix, optionally preserving existing values

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.

Requirements

Header: matrix.h

See Also

matrix<T> Class | matrix<T> Methods