[SciPy-user] Best way to save and load sparse matrix

Robin robince@gmail....
Mon Oct 8 05:59:01 CDT 2007

On 10/8/07, Matthew Brett <matthew.brett@gmail.com> wrote:
> Really?  Do you have an old version of scipy?  If not, what error do
> you get?  I put in sparse support for matlab v4 files some time ago,
> but it has not been fiercely tested...

Apologies, it does seem to be working. I had got an error about nnz atribute
not found when trying to save a matrix in lil format, and I found some old
mailing list posts I think saying sparce matrices weren't supported.
Obviously that's changed since then...

It does work with csc and csr matrices, both seem to load and save correctly
in python, although only CSC loads correctly in MATLAB (Csr has incorrect


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/scipy-user/attachments/20071008/536d286d/attachment.html 

More information about the SciPy-user mailing list