[SciPy-user] Severe problems with linalg.eigvals

Nils Wagner nwagner at mecha.uni-stuttgart.de
Thu Jul 8 07:07:59 CDT 2004

Dear experts,

I am going to solve nonlinear eigenvalue problems by a brute force 
approach (see the attachement). However I get into difficulties using 

Traceback (most recent call last):
   File "brute.py", line 39, in ?
     w = linalg.eigvals(A,B)
   File "/usr/lib/python2.3/site-packages/scipy/linalg/decomp.py", line 
161, in eigvals
     return eig(a,b=b,left=0,right=0,overwrite_a=overwrite_a)
   File "/usr/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/lib/python2.3/site-packages/scipy/linalg/decomp.py", line 
60, in _geneig
     if info>0: raise LinAlgError,"generalized eig algorithm did not 
scipy.linalg.basic.LinAlgError: generalized eig algorithm did not converge

How can I get rid of this problem ?

Any pointer would be appreciated.

Thanks in advance

-------------- next part --------------
A non-text attachment was scrubbed...
Name: brute.py
Type: text/x-python
Size: 804 bytes
Desc: not available
Url : http://www.scipy.net/pipermail/scipy-user/attachments/20040708/9da5adf8/brute.py

More information about the SciPy-user mailing list