Next: Sparse Matrices Reading and Writing, Previous: Sparse Matrices Accessing Elements, Up: Sparse Matrices [Index]

Since the sparse matrix format only stores the non-zero elements, it is automatically
initialized to zero upon allocation. The function `gsl_spmatrix_set_zero`

may
be used to re-initialize a matrix to zero after elements have been added to it.

- Function:
*int***gsl_spmatrix_set_zero***(gsl_spmatrix **`m`) This function sets (or resets) all the elements of the matrix

`m`to zero.