Files
mql5-skills/skills/mql5/references/docs/06-matrix/0387-matrix-matrix-classification-matrix-isdiagonal.md
T
2026-06-23 21:47:51 +08:00

33 lines
489 B
Markdown
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# IsDiagonal
Check if a square matrix is diagonal.
```
bool matrix::IsDiagonal();
```
Return Value
True if square matrix is diagonal.
Note
Diagonal matrix contains all zeros under and above the main diagonal.
Zero matrix of n-by-n size is diagonal.
Diagonal matrix
```
 
   v  0  0  0  0  0
   0  v  0  0  0  0
   0  0  v  0  0  0
   0  0  0  v  0  0
   0  0  0  0  v  0
   0  0  0  0  0  v
 
```