Renamed write_dgCMatrix to write_sparse.