Determine if matrix is lower triangular
tf = istril(
returns
logical A
)1
(true
) if A
is
a lower triangular
matrix; otherwise, it returns logical 0
(false
).
Use the tril
function
to produce lower triangular matrices for which istril
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, istril(A)
== isbanded(A,size(A,1),0)
.