Einstein notation (summation convention) is a notation for tensor operations in which an index that appears twice in a term is implicitly summed over its full range. Indices that appear exactly once are free and determine the output shape.
Indices
Free Indices
Definition
Free Index (Einstein Notation)
A free index is an index that appears exactly once in an Einstein notation term. It is not summed over and becomes an axis of the output.
A dummy index (contracted index) is an index that appears exactly twice in an Einstein notation term. It is implicitly summed over its full range and does not appear in the output.
In Einstein notation, an index that appears three or more times in a single term is ill-formed. The expression is undefined because the summation is ambiguous — there is no rule for which pairs to contract.
Every index in a well-formed term must be either free (once) or dummy (twice).