tfel
Loading...
Searching...
No Matches
tfel::math::AitkenAccelerationAlgorithm< NumericType, IndexType > Struct Template Reference

an implementation of the Aitken \(\Delta^{2}\) algorithm More...

#include </home/runner/work/tfel/tfel/include/TFEL/Math/AccelerationAlgorithms/AitkenAccelerationAlgorithm.hxx>

Public Member Functions

void initialize (const NumericType)
 this method shall be called before starting a new resolution
void accelerate (NumericType &)
 perform the acceleration

Detailed Description

template<typename NumericType, typename IndexType = unsigned int>
struct tfel::math::AitkenAccelerationAlgorithm< NumericType, IndexType >

an implementation of the Aitken \(\Delta^{2}\) algorithm

Template Parameters
NumericTypenumeric type used
IndexTypeinteger used to store the iteration number

Member Function Documentation

◆ accelerate()

template<typename NumericType, typename IndexType>
void tfel::math::AitkenAccelerationAlgorithm< NumericType, IndexType >::accelerate ( NumericType & x)

perform the acceleration

Parameters
[in,out]xon input, the result of the Picard iteration. On output, an accelerated estimate.

◆ initialize()

template<typename NumericType, typename IndexType>
void tfel::math::AitkenAccelerationAlgorithm< NumericType, IndexType >::initialize ( const NumericType x)

this method shall be called before starting a new resolution

Parameters
[in]x0initial guess

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