[SciPy-user] Sparse eigenvalues/eigenvectors problem

James Philbin philbinj@gmail....
Thu Jun 12 19:01:59 CDT 2008


Hi,

>>>> A = #your matrix
>>>> from scipy.io import mmwrite
>>>> mmwrite('A.mtx', A)

mmwrite seems not to work for me (latest svn checkout):
  File "/usr/lib/python2.5/site-packages/scipy/io/mmio.py", line 67, in mmwrite
    MMFile().write(target, a, comment, field, precision)
  File "/usr/lib/python2.5/site-packages/scipy/io/mmio.py", line 284, in write
    self._write(stream, a, comment, field, precision)
  File "/usr/lib/python2.5/site-packages/scipy/io/mmio.py", line 564, in _write
    IJV = vstack((a.row, a.col, a.data)).T
  File "/usr/lib/python2.5/site-packages/scipy/sparse/csr.py", line
93, in __getattr__
    return _cs_matrix.__getattr__(self, attr)
  File "/usr/lib/python2.5/site-packages/scipy/sparse/base.py", line
316, in __getattr__
    raise AttributeError, attr + " not found"
AttributeError: row not found

I've saved the matrix in (row,col,data) format and uploaded it here:
www.robots.ox.ac.uk/~james/np_temp/S.txt.gz

Thanks,
James


More information about the SciPy-user mailing list