Computes the Cholesky decomposition of a symmetric positive-definite matrix. Supports batched inputs: dimensions before the last two are batch dimensions.
Arguments
- a
(
tensorish)
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(default), compute the lower triangular factorLsuch thata = L %*% t(L). IfFALSE, compute the upper triangular factorUsuch thata = t(U) %*% U.
Value
tensorish
Triangular matrix with the same shape and data type as the input.