Diagonal matrix

From Linear

This article defines a property that can be evaluated for a square matrix. In other words, given a square matrix (a matrix with an equal number of rows and columns) the matrix either satisfies or does not satisfy the property.
View other properties of square matrices

Definition

Verbal definition

A diagonal matrix is a square matrix for which all the off-diagonal entries are zero, or equivalently, all nonzero entries are on the diagonal. Note that it is also possible that some (or even all) the diagonal entries are zero.

Algebraic description

Suppose is a positive integer. Suppose is a matrix. We say that is a diagonal matrix if the following holds:

In general, a diagonal matrix has the following appearance:

Small cases

General description of diagonal matrix Number of free parameters (equals )
1 1
2 2
3 Failed to parse (unknown function "\begin{pmmatrix}"): {\displaystyle \begin{pmmatrix} a_{11} & 0 & 0 \\ 0 & a_{22} & 0 \\ 0 & 0 & a_{33}\\\end{pmatrix}} 3

Encoding

A matrix that is known to be diagonal may simply be encoded using an ordered list of its diagonal entries. For a matrix, this requires space for entries (in contrast with space for entries for an arbitrary square matrix).

Matrix operations

Unless otherwise specified, diagonal matrices are diagonal matrices.

Matrix operation Arithmetic complexity: number of additions Arithmetic complexity: number of multiplications
Computation of the trace 0
Computation of the determinant 0
Addition of two such matrices 0
Multiplication of two such matrices 0
Multiplication by a rectangular matrix (we allow ) 0