Diagonal matrix

In matrix algebra, a diagonal matrix is a square matrix for which only the entries on the main diagonal can be non-zero, and all the other, off-diagonal, entries are equal to zero.

The sum and product of diagonal matrices are again diagonal, and the diagonal matrices form a subring of the ring of square matrices: indeed for n×n matrices over a ring R this ring is isomorphic to the product ring R n.

The zero matrix and the identity matrix are diagonal: they are the additive and multiplicative identity respectively of the ring.

A matrix over a field may be transformed into a diagonal matrix by a combination of operation|row and column operations to the the LDU decomposition.