IMatrixPatternsIsDiagonal Property |
Namespace: Novacta.Analytics
A matrix is diagonal if it is square with zero elements outside the main diagonal.
Let be a matrix, and consider its generic entry
where and
are the
number of rows and columns of , respectively.
The main diagonal of is also said the diagonal of order 0, and is the collection of entries such that .
Hence IsDiagonal returns true if and whenever .