Is numarray matrixmultiply supposed to transpose the second argument?

Christopher T King squirrel at WPI.EDU
Mon Jul 19 16:07:15 CEST 2004


On Mon, 19 Jul 2004, Raoul wrote:

> A=array([[350],
>      [370],
>      [510],
>      [490],
>      [500]])
> 
> B=array([[35,37,51,49,50]])
> 
> print "A and B before matmul:"
> print A
> print B
> 
> AB=matrixmultiply(A,B)
> 
> print "AxB, A, B, after matmul:"
> print AB
> print A
> print B

This works for me (B before == B after).  Which version of numarray are 
you using?




More information about the Python-list mailing list