[Numpy-discussion] Multiplying list of matrices with list of vectors

David Reichert d.p.reichert at sms.ed.ac.uk
Wed Sep 29 15:03:12 EDT 2010


Hi,

I have a list of matrices W_k I'd like to multiply with a list of vectors
v_k,
or another way of looking at it, writing all W_k into a 3d array and all
v_k into a 2d matrix/array, I'd like to compute matrix R as

R_ik = sum_j W_ijk h_jk.


Is there a fast way of doing that in numpy?

Regards,
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100929/856184df/attachment.html>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100929/856184df/attachment.ksh>


More information about the NumPy-Discussion mailing list