On Wed, Nov 08, 2006 at 05:54:17AM -0800, izak marais wrote:
> Hi
> 
> 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. The ' * ' operator apparently
> does element wise multiplication, as does the 'multiply' ufunc. All I could
> find was the numeric function 'matrix_multiply, but this only takes two
> arguments.

You can also do N.dot(B, N.dot(C,D)).

Cheers
Stéfan



-------------------------------------------------------------------------
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
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to