Function csmatrix_n_cols

Function Documentation

static inline size_t csmatrix_n_cols(const struct csmatrix *const matrix)

Get the # of total columns in the matrix, if it were represented in an uncompressed form.

This is never modified after initialization, and serves as a convenience method when attempted to print a matrix.

Parameters:

matrix – The matrix handle.

Returns:

The total # of columns.