[Scipy-tickets] [SciPy] #574: problem with (numpy) pinv on windows

SciPy scipy-tickets@scipy....
Tue Dec 25 21:30:12 CST 2007


#574: problem with (numpy) pinv on windows
---------------------+------------------------------------------------------
 Reporter:  sdicker  |       Owner:  somebody
     Type:  defect   |      Status:  new     
 Priority:  normal   |   Milestone:  0.7     
Component:  Other    |     Version:          
 Severity:  normal   |    Keywords:          
---------------------+------------------------------------------------------
 Hi

 Pinv seems to go into endless computation on winxp sp2 with python 2.5.1.

 > python
 Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit
 (Intel)] on
 win32
 Type "help", "copyright", "credits" or "license" for more information.
 >>> from numpy import array
 >>> A=array([[1,0,1,0],[1,0,0,1]])
 >>> A
 array([[1, 0, 1, 0],
        [1, 0, 0, 1]])
 >>> from numpy.linalg import pinv
 >>> pinv(A)
 array([[ 0.33333333,  0.33333333],
        [ 0.        ,  0.        ],
        [ 0.66666667, -0.33333333],
        [-0.33333333,  0.66666667]])
 >>> A=array([[1,0,1,0],[1,0,0,1],[0,1,1,0]])
 >>> A
 array([[1, 0, 1, 0],
        [1, 0, 0, 1],
        [0, 1, 1, 0]])
 >>> pinv(A)  ### problem here

 I was trying to get the pinv of a very similar matrix on another windows
 machine and ran into the same problem - I then went to my x86 Linux
 machine and it solved right away.

 I'm not particularly strong in matrix math but i think this is a problem -
 Scott

-- 
Ticket URL: <http://scipy.org/scipy/scipy/ticket/574>
SciPy <http://www.scipy.org/>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list