[Numpy-discussion] HELP! eig and eigvals hang the python session

Alan G Isaac aisaac at american.edu
Sat Jan 21 09:52:08 CST 2006


On Sat, 21 Jan 2006, Jose Borreguero apparently wrote: 
>>>> eig(a) 
> and the process freezes here (at least 18minutes from now). I checked with 
> 'top' and python is using all CPU. 


No problem here.
fwiw,
Alan Isaac

Python 2.4.1 (#65, Mar 30 2005, 09:13:57) [MSC v.1310 32 bit 
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as N
>>> a=N.rand(3,3)
>>> from numpy.linalg import det,eig
>>> det(a)
-0.1313102666029379
>>> eig(a)
(array([ 1.65540878, -0.16786818,  0.47252527]), array([[-0.55573211, -0.8712454
8,  0.25278726],
       [-0.52611295,  0.37246933, -0.5095001 ],
       [-0.64371343,  0.31968409,  0.82250122]]))
>>> N.__version__
'0.9.2'
>>>






More information about the Numpy-discussion mailing list