Kronecker delta

The Kronecker delta is a function of two variables, usually integers, that is 1 if the variables are equal and 0 otherwise. It is often used in summations and matrix operations to simplify expressions.

Examples

represents an identity matrix, where the diagonal elements are 1 (when ) and the off-diagonal elements are 0 (when ).
extracts the -th element from the sequence .
is the standard basis/unit vector with a 1 in the -th position and 0s elsewhere.