Determine if matrix is upper triangular
tf = istriu(
returns
logical A
)1
(true
) if A
is
an upper
triangular matrix; otherwise, it returns logical 0
(false
).
Use the triu
function
to produce upper triangular matrices for which istriu
returns
logical 1
(true
).
The functions isdiag
, istriu
,
and istril
are special cases of the function isbanded
, which can perform all of the
same tests with suitably defined upper and lower bandwidths. For example, istriu(A)
== isbanded(A,0,size(A,2))
.