Computes the Cholesky decomposition of a symmetric positive-definite matrix. Supports batched inputs: dimensions before the last two are batch dimensions.
Usage
nv_chol(operand, lower = FALSE)
# S3 method for class 'AnvlArray'
chol(x, ..., lower = FALSE)Arguments
- operand
(
arrayish)
Symmetric positive-definite matrix with at least 2 dimensions. The last two dimensions form the square matrix; any leading dimensions are batch dimensions.- lower
(
logical(1))
IfTRUE, return the lower-triangular factor.- x
(
arrayish)
Same asoperand; this is the name used by the base R S3 generic.- ...
No additional arguments.
Value
arrayish
Triangular matrix with the same shape and data type as the input.