Details and Options
- DiagonalMatrixQ[m,k] works even if m is not a square matrix.
- In DiagonalMatrixQ[m,k], positive k refers to superdiagonals above the main diagonal and negative k refers to subdiagonals below the main diagonal.
- DiagonalMatrixQ works with SparseArray and StructuredArray objects.
- For approximate matrices, the option Tolerance->t can be used to indicate that all entries Abs[mij]≤t are taken to be zero.
Examplesopen all close all
Basic Examples (3)
Properties & Relations (10)
Introduced in 2019