Linear Algebra/Diagonal Matrix

From testwiki
Jump to navigation Jump to search

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=[a11000a22000ann]

Template:BookCat