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

Robin robince at gmail.com
Mon Oct 8 06:59:01 EDT 2007


On 10/8/07, Matthew Brett <matthew.brett at 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
data).

Thanks,

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


More information about the SciPy-User mailing list