Learn R Programming

ramify (version 0.4.0)

is.tril: Lower Triangular Matrix Test

Description

Determine if a matrix is lower triangular.

Usage

is.tril(x)

Value

Logical indicating whether the given matrix is lower triangular.

Arguments

x

A matrix.

Examples

Run this code
m <- mat("1, 0, 0, 0; -1, 1, 0, 0; -2, -2, 1, 0; -3, -3, -3, 1")
is.tril(m)
is.tril(eye(3, 5))

Run the code above in your browser using DataLab