Next: , Previous: , Up: Sparse Matrices   [Index]


41.9 Sparse matrix compressed format

GSL supports the compressed column format, in which the non-zero elements in each column are stored contiguously in memory.

Function: gsl_spmatrix * gsl_spmatrix_compcol (const gsl_spmatrix * T)

This function creates a sparse matrix in compressed column format from the input sparse matrix T which must be in triplet format. A pointer to a newly allocated matrix is returned. The calling function should free the newly allocated matrix when it is no longer needed.