xerus
a general purpose tensor library
xerus::misc::RichardsonExtrapolation< ft_type > Class Template Reference

Limit extraction using the richardson extrapolation. More...

#include <simpleNumerics.h>

Inheritance diagram for xerus::misc::RichardsonExtrapolation< ft_type >:
Collaboration diagram for xerus::misc::RichardsonExtrapolation< ft_type >:

Public Member Functions

virtual ~RichardsonExtrapolation ()
 
ft_type best_estimate () const override
 
ft_type error_approximate () const override
 
void push_back (ft_type _val) override
 
void reset () override
 
- Public Member Functions inherited from xerus::misc::LimitExtractor< ft_type >
virtual ~LimitExtractor ()
 

Static Public Member Functions

static ft_type richard (size_t n, ft_type x1, ft_type x2)
 

Public Attributes

std::vector< ft_type > values
 

Static Public Attributes

static constexpr ft_type epsilon = std::numeric_limits<ft_type>::epsilon()
 

Detailed Description

template<class ft_type>
class xerus::misc::RichardsonExtrapolation< ft_type >

Limit extraction using the richardson extrapolation.

Can be derived by assuming that \( x_inf - x_n = alpha * n^(-1)\) .

Definition at line 132 of file simpleNumerics.h.

Constructor & Destructor Documentation

◆ ~RichardsonExtrapolation()

template<class ft_type >
virtual xerus::misc::RichardsonExtrapolation< ft_type >::~RichardsonExtrapolation ( )
inlinevirtual

Definition at line 148 of file simpleNumerics.h.

Member Function Documentation

◆ best_estimate()

template<class ft_type >
ft_type xerus::misc::RichardsonExtrapolation< ft_type >::best_estimate ( ) const
overridevirtual

Implements xerus::misc::LimitExtractor< ft_type >.

Definition at line 319 of file simpleNumerics.cpp.

◆ error_approximate()

template<class ft_type >
ft_type xerus::misc::RichardsonExtrapolation< ft_type >::error_approximate ( ) const
overridevirtual

Implements xerus::misc::LimitExtractor< ft_type >.

Definition at line 328 of file simpleNumerics.cpp.

◆ push_back()

template<class ft_type >
void xerus::misc::RichardsonExtrapolation< ft_type >::push_back ( ft_type  _val)
overridevirtual

Implements xerus::misc::LimitExtractor< ft_type >.

Definition at line 311 of file simpleNumerics.cpp.

◆ reset()

template<class ft_type >
void xerus::misc::RichardsonExtrapolation< ft_type >::reset ( )
overridevirtual

Implements xerus::misc::LimitExtractor< ft_type >.

Definition at line 336 of file simpleNumerics.cpp.

◆ richard()

template<class ft_type >
ft_type xerus::misc::RichardsonExtrapolation< ft_type >::richard ( size_t  n,
ft_type  x1,
ft_type  x2 
)
static

Definition at line 306 of file simpleNumerics.cpp.

Member Data Documentation

◆ epsilon

template<class ft_type >
constexpr ft_type xerus::misc::RichardsonExtrapolation< ft_type >::epsilon = std::numeric_limits<ft_type>::epsilon()
static

Definition at line 134 of file simpleNumerics.h.

◆ values

template<class ft_type >
std::vector<ft_type> xerus::misc::RichardsonExtrapolation< ft_type >::values

Definition at line 136 of file simpleNumerics.h.


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