[Scipy-tickets] [SciPy] #1875: linalg.expm(A) returns an array even if A is a matrix

SciPy Trac scipy-tickets@scipy....
Mon Apr 1 07:56:27 CDT 2013


#1875: linalg.expm(A) returns an array even if A is a matrix
---------------------------+------------------------------------------------
  Reporter:  cparmer       |       Owner:  pv         
      Type:  defect        |      Status:  closed     
  Priority:  normal        |   Milestone:  Unscheduled
 Component:  scipy.linalg  |     Version:  0.11.0     
Resolution:  invalid       |    Keywords:             
---------------------------+------------------------------------------------
Changes (by rgommers):

  * status:  new => closed
  * resolution:  => invalid


Comment:

 That's a misunderstanding. Linalg functions return ndarrays, and thye do
 so by design. The same is true for other scipy modules.

 Matrices are mostly useful for teaching. I suggest to avoid them for
 production code.

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1875#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