From: Joris De R. <jo...@st...> - 2006-11-08 15:01:57
|
[im]: 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. [im] All I could find was the numeric function 'matrix_multiply, but this only takes two arguments. Have a look at the examples "dot()" and "mat()" in the Numpy Example List. http://www.scipy.org/Numpy_Example_List J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm |