Learn Before
Definition

Diagonal Matrix

A diagonal matrix is a matrix in which all entries outside the main diagonal are zero. Formally, a matrix DD is a diagonal matrix if and only if Di,j=0D_{i,j} = 0 for all iji \neq j. The notation diag(v)diag(v) is used to denote a diagonal matrix whose main diagonal is the vector vv. Note that not all diagonal matrices need to be square.

0

1

Updated 2026-06-19

References


Tags

Data Science