Hi,
Thanks for the tip. For small matrices this method seems to be faster,
however, for matrices of
the size I'm using it actually seems to be slower than simply looping...
Regards,
David
On Wed, Sep 29, 2010 at 9:34 PM, Charles R Harris wrote:
>
>
> On Wed, Sep 29, 2010 at 1:03 PM, David Reic
On Wed, Sep 29, 2010 at 1:03 PM, David Reichert
wrote:
> 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_
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,