[Numpy-tickets] [NumPy] #490: problem with simple matrix addition

NumPy numpy-tickets@scipy....
Tue Apr 3 07:51:03 CDT 2007


#490: problem with simple matrix addition
-------------------------+--------------------------------------------------
 Reporter:  gauthampdas  |       Owner:  somebody     
     Type:  defect       |      Status:  new          
 Priority:  highest      |   Milestone:  1.0.2 Release
Component:  numpy.core   |     Version:  1.0.1        
 Severity:  major        |    Keywords:               
-------------------------+--------------------------------------------------
 when we declare an row vector as a matrix, and doing addition i noticed a
 problem.

 {{{
 >>> a=mat([1,2,3])
 >>> a+transpose(a)
 matrix([[2, 3, 4],
         [3, 4, 5],
         [4, 5, 6]])
 >>> a+a
 matrix([[2, 4, 6]])
 }}}

 In my application i have to handle different matrices and vectors. Just
 noticed it. This is a simple mistake but can make big errors

-- 
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/490>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list