Tensor Index Reduction