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

33 lines
537 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.
# IsTridiagonal
Check if a square matrix is tridiagonal.
```
bool matrix::IsTridiagonal();
```
Return Value
True if square matrix is tridiagonal.
Note
Tridiagonal matrix contains all zeros under the subdiagonal and above the superdiagonal.
Bidiagonal matrix upper or lower is also tridiagonal.
Tridiagonal matrix
```
 
   v  v  0  0  0  0
   v  v  v  0  0  0
   0  v  v  v  0  0
   0  0  v  v  v  0
   0  0  0  v  v  v
   0  0  0  0  v  v
 
```