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


40.5 Copying sparse matrices

Function: int gsl_spmatrix_memcpy (gsl_spmatrix * dest, const gsl_spmatrix * src)

This function copies the elements of the sparse matrix src into dest. The two matrices must have the same dimensions and be in the same storage format.

Function: int gsl_spmatrix_transpose_memcpy (gsl_spmatrix * dest, const gsl_spmatrix * src)

This function copies the transpose of the sparse matrix src into dest. The dimensions of dest must match the transpose of the matrix src. Also, both matrices must use the same sparse storage format.