# [Numpy-discussion] Tensor contraction

Alan Bromborsky abrombo@verizon....
Sat Jun 12 15:30:14 CDT 2010

If I have a single numpy array, for example with 3 indices T_{ijk} and I
want to sum over two them in the sense of tensor contraction -

T_{k} = \sum_{i=0}^{n-1} T_{iik}.  Is there an easy way to do this with
numpy?