Let $A=(a_{ij})$ be a square matrix. An element $a_{ij}$ is an off-diagonal entry if $a_{ij}$ is not on the diagonal, i.e., if $i\neq j$ .