Jump to content

Linear Algebra/Diagonal Matrix

From Wikibooks, open books for an open world

A diagonal matrix, A, is a square matrix in which the entries outside of the main diagonal are zero. The main diagonal of a square matrix consists of the entries which run from the top left corner to the bottom right corner.

In the example below the main diagonal are a11,a22,...,ann

A=[a110⋯00a22⋯0⋮⋮⋱⋮00⋯ann]