9.0
general documentation
Loading...
Searching...
No Matches
cs_iter_algo_aac_t Struct Reference

Context structure for the algorithm called Anderson acceleration. More...

#include <cs_iter_algo.h>

Collaboration diagram for cs_iter_algo_aac_t:

Data Fields

cs_iter_algo_param_aac_t param
cs_sles_convergence_state_t cvg_status
double normalization
double tol
double prev_res
double res
double res0
int n_algo_iter
int n_inner_iter
int last_inner_iter
cs_lnum_t n_elts
Work quantities (temporary)
int n_dir
cs_real_tfold
cs_real_tdf
cs_real_tgold
cs_real_tdg
cs_real_tQ
cs_sdm_t * R
cs_real_tgamma

Detailed Description

Context structure for the algorithm called Anderson acceleration.

Set of parameters and arrays to manage the Anderson acceleration

Field Documentation

◆ cvg_status

Converged, iterating or diverged status

◆ df

cs_real_t* df

Difference between the current and previous values of f

◆ dg

cs_real_t* dg

Difference between the current and previous values of g

◆ fold

cs_real_t* fold

Previous values for f

◆ gamma

cs_real_t* gamma

Coefficients used to define the linear combination

◆ gold

cs_real_t* gold

Previous values for g

◆ last_inner_iter

int last_inner_iter

Last number of iterations for the inner solver

◆ n_algo_iter

int n_algo_iter

Current number of iterations for the algorithm (outer iterations)

◆ n_dir

int n_dir

Number of directions currently at stake

◆ n_elts

cs_lnum_t n_elts

◆ n_inner_iter

int n_inner_iter

Curent cumulated number of inner iterations (sum over the outer iterations)

◆ normalization

double normalization

Value of the normalization for the relative tolerance.

The stopping criterion is such that res < rtol * normalization. By default, the normalization is set to 1.

◆ param

Set of parameters driving the behavior of the Anderson acceleration

◆ prev_res

double prev_res

Value of the previous residual achieved during the iterative process

◆ Q

Matrix Q in the Q.R factorization (seen as a bundle of vectors)

◆ R

cs_sdm_t* R

Matrix R in the Q.R factorization (small dense matrix)

◆ res

double res

Value of the residual for the iterative algorithm

◆ res0

double res0

Value of the first residual of the iterative process. This is used for detecting the divergence of the algorithm.

◆ tol

double tol

Tolerance computed as tol = max(atol, normalization*rtol) where atol and rtol are respectively the absolute and relative tolerance associated to the algorithm


The documentation for this struct was generated from the following file: