[Matrix-SIG] Bug in matrixmultiply

Mikkel Bollinger mbolling@fysik.dtu.dk
Fri, 15 Oct 1999 10:40:49 +0200 (CEST)


I have been using the NumPy-package and I believe I found a bug using
the function "matrixmultiply":

>>> c=asarray([[0,1,0],[0,0,0],[0,0,0]])  
>>> matrixmultiply(5,c)
array([[0, 0, 0],
       [5, 0, 0],
       [0, 0, 0]])     

and

>>> matrixmultiply(c,5)
array([[0, 5, 0],
       [0, 0, 0],
       [0, 0, 0]])

When multiplying with a constant, matrixmultiply should either raise an
error message or interpret "5" as 5*unitmatrix. However it should not
transpose the output matrix as is the case for matrixmultiply(5,c).
Regards, 
Mikkel Bollinger 

--
Mikkel Bollinger
Center for Atomic-scale Materials Physics (CAMP)
Department of Physics, Building 307,
Technical University of Denmark
DK-2800 Lyngby, Denmark

E-Mail: mbolling@fysik.dtu.dk
Phone +45 45253204