gsl_spmatrix structure can be converted into the dense
format and vice versa with the following routines.
This function converts the dense matrix A into sparse triplet format and stores the result in S.
This function converts the sparse matrix S into a dense matrix and stores the result in A. S must be in triplet format.