Check if a matrix is Lower or Upper triangular {Rfast2} | R Documentation |
Check if a matrix is Lower or Upper triangular
Description
Lower/upper triangular matrix.
Usage
is.lower.tri(x, diag = FALSE)
is.upper.tri(x, diag = FALSE)
Arguments
x |
A matrix with data. |
diag |
A logical value include the diagonal to the result. |
Value
Check if a matrix is lower or upper triangular. You can also include diagonal to the check.
Author(s)
Manos Papadakis.
R implementation and documentation: Manos Papadakis papadakm95@gmail.com.
See Also
Examples
x <- matrix(runif(10*10),10,10)
is.lower.tri(x)
is.lower.tri(x,TRUE)
is.upper.tri(x)
is.upper.tri(x,TRUE)
[Package Rfast2 version 0.1.5.2 Index]