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

SciPy scipy-tickets@scipy....
Sun Jan 4 08:57:27 CST 2009

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

 This behaviour is found throughout the scipy.linalg module.  Fixing it
 requires systematically working through basic.py, decomp.py, etc., making
 sure that matrices are returned appropriately.

 The function "_makearray" used in numpy.linalg would come in useful.

 However, I am hesitant to make all these fixes because it dirties so much
 code.  Again, I wonder whether we *really* need two array classes with
 subtly different behaviour.  If so, should we implement support in NumPy
 for this common pattern?

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

More information about the Scipy-tickets mailing list