LowerTriangularize

LowerTriangularize[m]

gives a matrix in which all but the lower triangular elements of m are replaced with zeros.

LowerTriangularize[m,k]

replaces with zeros only the elements above the k^(th) subdiagonal of m.

Details

Examples

open allclose all

Basic Examples  (2)

Get the lower triangular part of a matrix:

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

Get the strictly lower triangular part of a matrix:

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

Scope  (2)

Properties & Relations  (1)

See Also

UpperTriangularize  Diagonal  Band  LUDecomposition

Introduced in 2008
(7.0)