[SciPy-user] scipy.linalg.basic.LinAlgError: generalized eig algorithm did not converge

Nils Wagner nwagner at mecha.uni-stuttgart.de
Fri Apr 2 04:15:33 CST 2004


Dear experts,

How can I intercept this error.

Traceback (most recent call last):
  File "himanshu.py", line 175, in ?
    w = linalg.eig(A,B,left=0,right=0)
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/decomp.py",
line 109, in eig
    return _geneig(a1,b,left,right,overwrite_a,overwrite_b)
  File "/usr/local/lib/python2.3/site-packages/scipy/linalg/decomp.py",
line 60, in _geneig
    if info>0: raise LinAlgError,"generalized eig algorithm did not
converge"
scipy.linalg.basic.LinAlgError: generalized eig algorithm did not
converge


I am using linalg.eig several times within a loop and I would like to
continue the computation.

A small scipy code would be appreciated.

What is the reason for this convergence problem ? 

Thanks in advance

                  Nils



More information about the SciPy-user mailing list