[NumPy-Tickets] [NumPy] #2154: numpy.dot(a, b, a) gives an incorrect result for a

NumPy Trac numpy-tickets@scipy....
Mon Jul 9 15:09:39 CDT 2012


#2154: numpy.dot(a, b, a) gives an incorrect result for a
------------------------+---------------------------------------------------
 Reporter:  ktdrv       |       Owner:  somebody   
     Type:  defect      |      Status:  new        
 Priority:  normal      |   Milestone:  Unscheduled
Component:  numpy.core  |     Version:  1.6.1      
 Keywords:              |  
------------------------+---------------------------------------------------

Comment(by ericfode):

 An in-place dot product is not possible with out allocating enough memory
 to copy the original item (a) into a temporary data structure, defeating
 the purpose of a in-place copy. Consequently, this does not work.

 Check out Wikipedia for an explanation of how to do a dot product.

 Use
 a = dot(a,identity(3))

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


More information about the NumPy-Tickets mailing list