[SciPy-user] Vectorization question

Anand Patil anand@soe.ucsc....
Fri Feb 9 16:12:34 CST 2007

Hi all,

I want to make array A from array B like so:

A[t, j, k] = \sum_i B[t, j, i] B[t, i, k]

That is, for each t

A[t,] = dot(B[t,], B[t,])

There's no loopless way to do this in numpy, right?

Thanks much,

More information about the SciPy-user mailing list