thouis / numpy-trac-migration

numpy Trac to github issues migration
2 stars 3 forks source link

numpy.dot(a, b, a) gives an incorrect result for a (Trac #2154) #5946

Open numpy-gitbot opened 11 years ago

numpy-gitbot commented 11 years ago

Original ticket http://projects.scipy.org/numpy/ticket/2154 on 2012-06-08 by trac user ktdrv, assigned to unknown.

Unless this is expected but undocumented behavior, trying to dot product an array in-place, results in a broken result:

>>> a = arange(1, 10, dtype = float64).reshape(3, 3)
>>> a
array([[ 1.,  2.,  3.],
       [ 4.,  5.,  6.],
       [ 7.,  8.,  9.]])
>>> dot(a, identity(3), a)
array([[ 0.,  2.,  3.],
       [ 4.,  5.,  6.],
       [ 7.,  8.,  9.]])