OffDiagonalElement
OffDiagonalElement is the term used in matrix algebra to denote any entry of a square matrix whose row index does not equal its column index. For a matrix A = [a_{ij}] of size n×n, elements with i ≠ j are considered off-diagonal. The diagonal elements are a_{ii} (i = 1, ..., n).
Examples illustrate the concept clearly: in a 3×3 matrix, a12, a13, a21, a23, a31, a32 are off-diagonal,
Properties and structure: In a symmetric matrix, off-diagonal elements satisfy a_{ij} = a_{ji}, forming symmetric pairs. In
Applications: In graph theory, the adjacency matrix of a simple graph uses off-diagonal entries to indicate
Computation and notation: The off-diagonal part of A can be written as A_off = A − diag(a_{11}, ..., a_{nn}).