Function csmatrix_init

Function Documentation

struct csmatrix *csmatrix_init(struct csmatrix *matrix_in, const struct csmatrix_params *params)

Initialize a compressed, sparse matrix. It should be noted that once initialized, the row/column dimensions of the matrix cannot be modified.

Parameters:
  • matrix_in – The matrix handle. Ignored unless RCSW_NOALLOC_DATA is passed, in which it is used instead of the matrix allocated memory for its own handle.

  • params – The initialization parameters

Returns:

The initialized matrix, or NULL if an error occurred.