cholesky_decompose | R Documentation |
Compute the Cholesky factorization of a real, symmetric,
positive-definite square matrix. Returns the lower-left triangular matrix
to match Stan's version. This function is simply an opinionated wrapper of
the base R function, chol()
.
cholesky_decompose(x, ...)
x |
A symmetric, positive-definite square matrix. |
... |
Additional parameters to pass to |
A lower-triangular square matrix the same size as x
.
x <- matrix(c(2, 1, 1, 2), nrow = 2)
cholesky_decompose(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.