[Numpy-discussion] Heigenvalues is broken

Travis Oliphant oliphant.travis at ieee.org
Sun Nov 18 19:01:01 EST 2001


On Sunday 18 November 2001 09:40 am, Alessandro Mirone wrote:
> 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)

I suspect it is your lapack.  On an Athlon running Mandrake Linux with the  
lapack-3.0-9 package, I get.

>>> a=array([[1,0],[0,1]])
>>> b=array([[0,1],[-1,0]])
>>> M=a+b*complex(0,1.0)
>>> Heigenvalues(M)
array([ 0.,  2.])


-Travis




More information about the NumPy-Discussion mailing list