UpperTriangularMatrixQ

UpperTriangularMatrixQ[m]

gives True if m is upper triangular, and False otherwise.

UpperTriangularMatrixQ[m,k]

gives True if m is upper triangular starting up from the k^(th) diagonal, and False otherwise.

Details and Options

Examples

open all close all

Basic Examples  (3)

Test if a matrix is upper triangular:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=
In[3]:=
Click for copyable input
Out[3]=

Test if a matrix is upper triangular starting from the first superdiagonal:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=

Test if a matrix is upper triangular starting from the first subdiagonal:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=
In[2]:=
Click for copyable input
Out[2]=

Scope  (7)

Options  (1)

Applications  (3)

Properties & Relations  (12)

Introduced in 2019
(12.0)