Compute the Cholesky Factor of a Matrix
# S3 method for greta_array
chol(x, ..., force_cholesky = FALSE)An upper-triangular greta_array representing the Cholesky
factor of x.
an object for which a method exists. The default method applies to numeric (or logical) symmetric, positive-definite matrices.
further arguments pass to or from methods.
Whether to force cholesky computation. Currently
used as a workaround to ensure cholesky is calculated properly, and may
result in code that uses chol() to be slow. Default is TRUE. Can change
to FALSE, but may encounter issues in
https://github.com/greta-dev/greta/issues/585.