is.lower.tri | R Documentation |
Returns TRUE
if the given matrix is lower or upper triangular matrix.
is.lower.tri(x, diag = FALSE)
is.upper.tri(x, diag = FALSE)
x |
a matrix of other R object with |
diag |
logical. Should the diagonal be included? |
Check if a matrix is lower or upper triangular. You can also include diagonal to the check.
lower.tri
, upper.tri
x <- matrix(rnorm(10 * 3), ncol = 3)
R <- chol(crossprod(x))
is.lower.tri(R)
is.upper.tri(R)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.