matrix multiplication (newbie question)

Nadav Horesh nadavh at visionsense.com
Wed Nov 8 08:43:46 CST 2006


Make A,B,... matrices instead of arrays, so instead

A = array((.....))

Write

A = matrix((....))

 

Assuming you had

>From numpy import *

 

  Nadav

 

  _____  

From: numpy-discussion-bounces at lists.sourceforge.net
[mailto:numpy-discussion-bounces at lists.sourceforge.net] On Behalf Of
izak marais
Sent: Wednesday, November 08, 2006 15:54
To: numpy-discussion at lists.sourceforge.net
Subject: [Numpy-discussion] matrix multiplication (newbie question)

 

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.

Thanks in advance!
Izak

  

  _____  

Sponsored Link

Degrees online in as fast as 1 Yr - MBA, Bachelor's, Master's, Associate
- Click now to apply
<http://online.degrees.info/forms/form.jsp?ADEL=D3sPPz6WYLD7%2FD1DxMxP%2
BbXooR4YcdmONmTWaUizNjh6q2wGRcnxuw%3D%3D&PI=y_mail_textlink> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://projects.scipy.org/pipermail/numpy-discussion/attachments/20061108/6ffe4425/attachment-0001.html 
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion


More information about the Numpy-discussion mailing list