[NumPy-Tickets] [NumPy] #1945: matrix([1, 2, 3]) and matrix([[1, 2, 3]]) gives the same result

NumPy Trac numpy-tickets@scipy....
Sat Aug 27 22:11:39 CDT 2011


#1945: matrix([1,2,3]) and matrix([[1,2,3]]) gives the same result
----------------------+-----------------------------------------------------
  Reporter:  smichr   |       Owner:  somebody   
      Type:  defect   |      Status:  closed     
  Priority:  normal   |   Milestone:  Unscheduled
 Component:  Other    |     Version:  1.6.0      
Resolution:  invalid  |    Keywords:  matrix     
----------------------+-----------------------------------------------------
Changes (by rkern):

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


Comment:

 Sorry, but that would break existing code and would be inconsistent with
 broadcasting semantics. You can use `np.matrix([1,2,3]).T` to construct a
 column vector conveniently without too many brackets.

-- 
Ticket URL: <http://projects.scipy.org/numpy/ticket/1945#comment:1>
NumPy <http://projects.scipy.org/numpy>
My example project


More information about the NumPy-Tickets mailing list