R/func_calibrate.R
inv_chol.Rd
Computes \(X^{-1}\) using chol followed by chol2inv for numerical stability.
chol
chol2inv
inv_chol(X)
Numeric symmetric positive definite matrix.
The inverse of X.
X
A <- matrix(c(4, 1, 1, 3), 2) inv_chol(A) #> [,1] [,2] #> [1,] 0.27272727 -0.09090909 #> [2,] -0.09090909 0.36363636 all.equal(inv_chol(A), solve(A)) #> [1] TRUE