tril {ramify} | R Documentation |
Extract Lower Triangular Matrix
Description
Extract the lower triangular part of a matrix.
Usage
tril(x, k = 0, diag = TRUE)
Arguments
x |
A matrix. |
k |
The sub-diagonal at and below which the matrix is filled.
|
diag |
Logical indicating whether to include the diagonal. Default is
|
Examples
tril(ones(5, 5))
tril(ones(5, 5), diag = TRUE)
[Package ramify version 0.4.0 Index]