cholesky: Efficient Cholesky decomposition

View source: R/RcppExports.R

choleskyR Documentation

Efficient Cholesky decomposition

Description

Compute Cholesky decomposition of a matrix.

Usage

cholesky(A)

Arguments

A

matrix to decompose

Value

upper triangular matrix R such that A = U'U.

See Also

harmonicHMC()

Examples

# Larger example
set.seed(123)
B <- matrix(rnorm(16), 4, 4)
B <- t(B) %*% B  # Make symmetric positive definite
U <- cholesky(B)
U
# Verify decomposition
all.equal(B, t(U) %*% U)

hdtg documentation built on Feb. 11, 2026, 5:07 p.m.

Related to cholesky in hdtg...