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

David Reichert d.p.reichert@sms.ed.ac...
Wed Sep 29 14:03:12 CDT 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.scipy.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.scipy.org/pipermail/numpy-discussion/attachments/20100929/856184df/attachment.pl 


More information about the NumPy-Discussion mailing list