CG_control: Set options for the conjugate gradient (CG) sampler

View source: R/conjugate_gradients.R

CG_controlR Documentation

Set options for the conjugate gradient (CG) sampler

Description

Set options for the conjugate gradient (CG) sampler

Usage

CG_control(
  max.it = NULL,
  stop.criterion = NULL,
  preconditioner = c("GMRF", "GMRF2", "GMRF3", "identity"),
  scale = 1,
  chol.control = chol_control(),
  verbose = FALSE
)

Arguments

max.it

maximum number of CG iterations.

stop.criterion

total squared error stop criterion for the CG algorithm.

preconditioner

one of "GMRF", "GMRF2", "GMRF3" and "identity".

scale

scale parameter; only used by the "GMRF3" preconditioner.

chol.control

options for Cholesky decomposition, see chol_control.

verbose

whether diagnostic information about the CG sampler is shown.

Value

A list of options used by the conjugate gradients algorithm.


mcmcsae documentation built on Oct. 11, 2023, 1:06 a.m.