Algosim documentation: IsAntidiagonal

IsAntidiagonal

Tests if a matrix is antidiagonal.

Syntax

Description

If A is a matrix then IsAntidiagonal(A, ε) is true iff A is square and i ≠ n − j + 1 implies A[i, j] is zero (with epsilon ε) where n is the size of A.

Examples

IsAntidiagonal(❨❨0, 4❩, ❨1, 0❩❩)
true

See also