[SciPy-user] Sparse Complex matrices and iterative solvers

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Oct 22 04:05:40 CDT 2004


Hi all,

Iterative solvers cannot be used with sparse complex matrices.

Traceback (most recent call last):
  File "sparse_it.py", line 32, in ?
    sol0,info0  = linalg.gmres(A,r)
  File "/usr/lib/python2.3/site-packages/scipy/linalg/iterative.py", 
line 499, in gmres
    work[slice2] += sclr1*matvec(work[slice1])
TypeError: return array has incorrect type
 
Nils



More information about the SciPy-user mailing list