[Numpy-discussion] Heigenvalues is broken

Nils Wagner nwagner at mecha.uni-stuttgart.de
Sun Nov 18 23:58:01 EST 2001


Alessandro Mirone schrieb:
> 
> Is it a problem of lapack3.0 of of
> LinearAlgebra.py?
> ..................... ==> (Eigenvalues should be (0,2))
> 
> >>> a=array([[1,0],[0,1]])
> >>> b=array([[0,1],[-1,0]])
> >>> M=a+b*complex(0,1.0)
> >>> Heigenvalues(M)
> array([-2.30277564,  1.30277564])
> >>> print M
> [[ 1.+0.j  0.+1.j]
>  [ 0.-1.j  1.+0.j]]
> >>>
> 
> _______________________________________________
> Numpy-discussion mailing list
> Numpy-discussion at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/numpy-discussion

On an Athlon running SuSE Linux 7.3 with the  
lapack-3.0-0 package, I get.

[-2.30277564  1.30277564]

Nils




More information about the NumPy-Discussion mailing list