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