]> gitweb.michael.orlitzky.com - octave.git/blob - is_upper_triangular.m
Check for the easy case in rank_k_approximation().
[octave.git] / is_upper_triangular.m
1 function isUT = is_upper_triangular(A)
2 %
3 % Returns true if ``A`` is upper triangular, false otherwise.
4 %
5 isUT = isequal(A, triu(A));
6 end