Learn R Programming

ramify (version 0.4.0)

is.triu: Upper Triangular Matrix Test

Description

Determine if a matrix is upper triangular.

Usage

is.triu(x)

Value

Logical indicating whether the given matrix is lower triangular.

Arguments

x

A matrix.

Examples

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

Run the code above in your browser using DataLab