Learn R Programming

remotePARTS (version 1.0.4)

invert_chol: Invert the cholesky decomposition of V

Description

Invert the cholesky decomposition of V

Usage

invert_chol(M, nugget = 0, ncores = NA)

Value

numeric matrix: inverse of the Cholesky decomposition (lower triangle)

Arguments

M

numeric (double), positive definite matrix

nugget

numeric (double) nugget to add to M

ncores

optional integer indicating how many cores to use during the inversion calculation

Details

Calculates the inverse of the Cholesky decomposition of M which should not be confused with the inverse of M *derived* from the Cholesky decomposition (i.e. `chol2inv(M)`).

Examples

Run this code
M <- crossprod(matrix(1:6, 3))

# without a nugget:
invert_chol(M)

# with a nugget:
invert_chol(M, nugget = 0.2)

Run the code above in your browser using DataLab