The **Kronecker delta function** (represented with *δ*) is a piecewise function of two variables such that

It is most useful when used for integers. For example, the *n × n* identity matrix can be written as a matrix where each entry is the Kronecker delta of *i* and *j*. This is useful for defining an inner or dot product: