IsUpperBidiagonal
Tests if a matrix is upper bidiagonal.
Syntax

IsUpperBidiagonal(A[, ε])

A
is a matrix 
ε
is a positive number

Description
If A
is a matrix then IsUpperBidiagonal(A, ε)
is true
iff A
is square and i ≠ j
and i ≠ j − 1
implies A[i, j] = 0
(with epsilon ε
).
Examples
❨❨1, 2, 0, 0❩, ❨0, 2, 3, 0❩, ❨0, 0, 1, 0❩, ❨0, 0, 0, 5❩❩
⎛1 2 0 0⎞ ⎜0 2 3 0⎟ ⎜0 0 1 0⎟ ⎝0 0 0 5⎠
IsUpperBidiagonal(ans)
true