[SciPy-dev] Possibly bug in Sparse.py
nwagner at mecha.uni-stuttgart.de
Thu Feb 17 10:33:28 CST 2005
Robert Kern wrote:
> Nils Wagner wrote:
>> Traceback (most recent call last):
>> File "meerbergen.py", line 35, in ?
>> y, info = linalg.gmres(omega[i]*B-A,v)
>> File "/usr/lib/python2.3/site-packages/scipy/linalg/iterative.py",
>> line 583, in gmres
>> work = sb.zeros((6+restrt)*n,typ)
>> MemoryError: can't allocate memory for array
> Well, since most everything seems to operate with CSC format matrices,
> you could try explicitly converting your arrays to CSC format at the
> beginning and delete the COO instances.
Sorry, but I am not an expert of sparse matrix formats. So any hint
(example) how to convert the matrices into the
suitable format is welcome.
More information about the Scipy-dev