[SciPy-user] generalised eigen value problem

Robert Kern robert.kern@gmail....
Thu Sep 20 22:00:26 CDT 2007

Perez Kawumi wrote:
> Hi
> I have got two square matrices A and B. In matlab;
>     [V,D] = EIG(A,B) produces a diagonal matrix D of generalized
>     eigenvalues and a full matrix V whose columns are the
>     corresponding eigenvectors so that A*V = B*V*D.
> trying to solve for V and D in python
>  I switched D and V and used the command below
>     [D,V] = linalg.eig(A,B) 
> However, this sometimes gives me the right solutions and sometimes
> "wrong ones". Does anyone know how I can ensure that I always get the
> right solutions?

What do you mean by "right" and "wrong"? What code did you try? What results did
you get? What results did you expect?

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless enigma
 that is made terrible by our own mad attempt to interpret it as though it had
 an underlying truth."
  -- Umberto Eco

More information about the SciPy-user mailing list