Re: [Numpy-discussion] efficient usage of tensordot

2009-01-18 Thread Nadav Horesh
: [Numpy-discussion] efficient usage of tensordot This is related to a question I posted earlier. Suppose I have array A with dimensions n x m x l and array x with dimensions m x l. Interpret this as an array of l nxm matrices and and array of l m dimensional vectors. I wish to compute

[Numpy-discussion] efficient usage of tensordot

2009-01-17 Thread Gideon Simpson
This is related to a question I posted earlier. Suppose I have array A with dimensions n x m x l and array x with dimensions m x l. Interpret this as an array of l nxm matrices and and array of l m dimensional vectors. I wish to compute the matrix- vector product A[:,:,k] x[:,k] for each k