Einsum

  • Matrix transpose
    • ij ji
  • Sum
    • ij
  • Column sum
    • ij j
  • Row sum
    • ij i
  • Matrix vector multiply
    • ik, k i
  • Matrix matrix multiply
    • ik, kj ij
  • Dot product
    • i,i
    • ij, ij
  • Hadmard product
    • ij, ij ij
  • Outer product
    • i,j ij
  • Batch matrix multiply
    • ijk, ikl ijl
  • Tensor Contraction
    • pqrs , tuvr pstuv