[Scipy-tickets] [SciPy] #585: scipy.linalg.pinv() returns array when input is matrix

SciPy scipy-tickets@scipy....
Mon Jan 14 13:06:41 CST 2008


#585: scipy.linalg.pinv() returns array when input is matrix
--------------------------+-------------------------------------------------
 Reporter:  gabriel       |        Owner:  somebody
     Type:  defect        |       Status:  new     
 Priority:  normal        |    Milestone:  0.7     
Component:  scipy.linalg  |      Version:  devel   
 Severity:  normal        |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Comment (by nils):

 {{{
 >>> a
 matrix([[ 0.88894777,  0.54059936,  0.69227876,  0.99469991],
         [ 0.98510915,  0.41675907,  0.62088277,  0.06462228],
         [ 0.54099157,  0.109156  ,  0.38989788,  0.86835105],
         [ 0.72122655,  0.89989743,  0.35445573,  0.65224967]])
 >>> linalg.expm(a)
 array([[ 5.31905657,  2.8497355 ,  2.94682628,  3.98472091],
        [ 3.3099843 ,  2.83749582,  2.20677778,  2.18408704],
        [ 2.65839543,  1.62321162,  2.76474163,  2.77311416],
        [ 3.66509445,  2.79451742,  2.29864388,  4.01150257]])
 }}}

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


More information about the Scipy-tickets mailing list