From: Nadav H. <na...@vi...> - 2006-11-08 14:44:14
|
Make A,B,... matrices instead of arrays, so instead A =3D array((.....)) Write A =3D matrix((....)) =20 Assuming you had >From numpy import * =20 Nadav =20 _____ =20 From: num...@li... [mailto:num...@li...] On Behalf Of izak marais Sent: Wednesday, November 08, 2006 15:54 To: num...@li... Subject: [Numpy-discussion] matrix multiplication (newbie question) =20 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=3DB*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 =20 _____ =20 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=3DD3sPPz6WYLD7%2FD1DxMxP%= 2 BbXooR4YcdmONmTWaUizNjh6q2wGRcnxuw%3D%3D&PI=3Dy_mail_textlink>=20 |