Skip to content

DiagonalMatrixQ

True if a matrix is diagonal.

$ wo 'DiagonalMatrixQ[{{1, 2}, {0, 3}}]'
False