[Numpy-discussion] linalg.eigenvector hang on nan values
Chris Fonnesbeck
fonnesbeck at gmail.com
Wed Mar 22 15:56:07 EST 2006
If linalg.eigenvectors is called on a matrix that contains nan values, it
hangs, quickly consuming system resources. Here is the matrix:
matrix = [[ 0. 0. 0. 0. 0.36658624
0. 0.
0. 0. 0. ]
[ 0.89827259 0. 0. 0. 0. 0.
0.
0. 0. 0. ]
[ 0. 0.92510948 0. 0. 0. 0.
0.
0. 0. 0. ]
[ 0. 0. nan nan 0. 0.
0.
0. 0. 0. ]
[ 0. 0. nan nan 0. nan
0. 0. 0. 0. ]
[ 0. 0. 0. 0. 0.93319244 nan
0. 0. 0. 0. ]
[ 0. 0. 0. 0. 0.36658624 0.
0.
0. 0. 0. ]
[ 0. 0. 0. 0. 0. 0.
0.89827259 0. 0. 0. ]
[ 0. 0. 0. 0. 0. 0.
0.
0.92510948 0. 0. ]
[ 0. 0. 0. 0. 0. 0.
0.
0. 0.92510948 0.93319244]]
I would expect an exception, but I get none.
Using a recent cvs build of numpy.
C.
--
Chris Fonnesbeck + Atlanta, GA + http://trichech.us
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20060322/6d59d780/attachment.html>
More information about the NumPy-Discussion
mailing list