[SciPy-user] Sparse format support in io.loadmat

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Oct 7 07:28:03 EDT 2004


Hi all,
 
AFAIK there is no support for reading sparse matrices via
io.loadmat.

Traceback (most recent call last):
  File "io.py", line 2, in ?
    print io.loadmat('test.mat', appendmat=0)
  File "/usr/lib/python2.3/site-packages/scipy/io/mio.py", line 744, in 
loadmat
    raise ValueError, "Cannot handle sparse matrices, yet."
ValueError: Cannot handle sparse matrices, yet.

Since io has many new features e.g. Matrix  Market
(and hopefully NASTRAN's op4 in the near future) it would be nice to have
support for sparse matrices in io.loadmat.

Any comments ?

Nils




More information about the SciPy-User mailing list