matrix multiplication (newbie question)

Roberto De Almeida roberto at dealmeida.net
Wed Nov 8 09:45:15 EST 2006


On 11/8/06, Keith Goodman <kwgoodman at gmail.com> wrote:
> > Sorry if this is an obvious question, but what is the easiest way to
> > multiply matrices in numpy? Suppose I want to do A=B*C*D.
> If B and C and D are matrices, then '*' is matrix multiplication.

I think the difference between arrays and matrices is not clear for
him (he's clearly multiplying arrays).

Izak, you should first convert you arrays to matrices using ``numpy.matrix``.

--Rob

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642




More information about the NumPy-Discussion mailing list