icc: Incomplete Cholesky Factorization

Description Usage Arguments Details Value Warning See Also Examples

View source: R/RcppExports.R

Description

Incomplete Cholesky factorization method to generate preconditioning matrix for conjugate gradient method.

Usage

1
icc(A)

Arguments

A

matrix, symmetric and positive definite.

Details

Performs incomplete Cholesky factorization on the input matrix A, the output matrix is used for preconditioning in pcgsolve() if "ICC" is specified as the preconditioner.

Value

Returns a matrix after incomplete Cholesky factorization.

Warning

Users need to check that input matrix A is symmetric and positive definite before applying the function.

See Also

pcgsolve

Examples

1
2
3
4
5
## Not run: 
test_A <- matrix(c(4,1,1,3), ncol = 2)
out <- icc(test_A)

## End(Not run)

Example output



cPCG documentation built on May 2, 2019, 11:04 a.m.