Function csmatrix_resize

Function Documentation

status_t csmatrix_resize(struct csmatrix *matrix, size_t n_rows, size_t n_nz_elts)

Resize a matrix to the specified row x col.

All elements beyond the specified dimension are removed. This has the side effect of clearing the column sizes and column lists.

Parameters:
  • matrix – The matrix handle.

  • n_rows – The new # of rows.

  • n_nz_elts – The new # of columns.

Returns:

status_t.