[SciPy-user] Best way to save and load sparse matrix
Mon Oct 8 05:59:01 CDT 2007
On 10/8/07, Matthew Brett <firstname.lastname@example.org> 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...
More information about the SciPy-user