Qu

isdiag

Builtin index · Core maths

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.

CodeInputOutputDescription
isdiag(A)
A matrixnot documented yet
not documented yettrue 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.