isdiag
isdiag(A)
Input: A · Output: no output
What it is
true when every entry off the main diagonal is exactly 0 (any shape; an all-zero matrix is diagonal). A NaN counts as nonzero.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
isdiag(A) | A matrixnot documented yet | not documented yet | true when every entry off the main diagonal is exactly 0 (any shape; an all-zero matrix is diagonal). |
Examples
No documentation example calls this form yet. The Core maths chapter is where one belongs.