Learn R Programming

sparsediscrim (version 0.2.4)

solve_chol: Computes the inverse of a symmetric, positive-definite matrix using the Cholesky decomposition

Description

This often faster than solve for larger matrices. See, for example: http://blog.phytools.org/2012/12/faster-inversion-of-square-symmetric.html and http://stats.stackexchange.com/questions/14951/efficient-calculation-of-matrix-inverse-in-r.

Usage

solve_chol(x)

Arguments

x

symmetric, positive-definite matrix

Value

the inverse of x