[Numpy-discussion] isn't it a bug? (matrix multiplication)

dmitrey dmitrey.kroshko@scipy....
Thu Feb 7 07:41:41 CST 2008

from numpy import array
a = array((1.0, 2.0))

b = c = 15
b = b*a#ok
c *= a#ok

d = array(15)
e = array(15)
d = d*a#this works ok
e *= a#this intended to be same as prev line, but yields error:
Traceback (innermost last):
 File "<stdin>", line 1, in <module>
ValueError: invalid return array shape

More information about the Numpy-discussion mailing list