Plugins
ug::AitkenNevilleTimex< TVector > Class Template Reference

#include <time_extrapolation.h>

Public Types

typedef TVector vector_type
 vector type of solutions More...
 

Public Member Functions

 AitkenNevilleTimex (std::vector< size_t > nsteps)
 
 AitkenNevilleTimex (std::vector< size_t > nsteps, SmartPtr< ISubDiagErrorEst< vector_type > > error)
 
void apply ()
 apply for all stages More...
 
void apply (size_t nstages, bool with_error=true)
 best error estimate More...
 
number get_error_estimate (int k) const
 error estimate on stage k More...
 
const std::vector< number > & get_error_estimates () const
 
number get_global_stepsize ()
 
SmartPtr< vector_typeget_solution (size_t i)
 get solution (on stage i) More...
 
void set_error_estimate (SmartPtr< ISubDiagErrorEst< vector_type > > subdiag)
 set error estimator More...
 
void set_global_stepsize (number H)
 
void set_solution (SmartPtr< vector_type > soli, int i)
 set solution (for stage i) More...
 
virtual ~AitkenNevilleTimex ()
 

Protected Member Functions

number substep (size_t i)
 

Private Attributes

std::vector< size_t > m_num_steps
 
std::vector< SmartPtr< vector_type > > m_solution
 
number m_stepsize
 
SmartPtr< ISubDiagErrorEst< vector_type > > m_subdiag
 
std::vector< numberm_subdiag_error_est
 

Static Private Attributes

static const int m_order =1
 

Member Typedef Documentation

◆ vector_type

template<typename TVector >
typedef TVector ug::AitkenNevilleTimex< TVector >::vector_type

vector type of solutions

Constructor & Destructor Documentation

◆ AitkenNevilleTimex() [1/2]

template<typename TVector >
ug::AitkenNevilleTimex< TVector >::AitkenNevilleTimex ( std::vector< size_t >  nsteps)
inline

Aitken Neville scheme with a given number

References make_sp().

◆ AitkenNevilleTimex() [2/2]

template<typename TVector >
ug::AitkenNevilleTimex< TVector >::AitkenNevilleTimex ( std::vector< size_t >  nsteps,
SmartPtr< ISubDiagErrorEst< vector_type > >  error 
)
inline

◆ ~AitkenNevilleTimex()

template<typename TVector >
virtual ug::AitkenNevilleTimex< TVector >::~AitkenNevilleTimex ( )
inlinevirtual

Member Function Documentation

◆ apply() [1/2]

template<typename TVector >
void ug::AitkenNevilleTimex< TVector >::apply ( )
inline

apply for all stages

References ug::AitkenNevilleTimex< TVector >::m_num_steps.

◆ apply() [2/2]

template<typename TVector >
void ug::AitkenNevilleTimex< TVector >::apply ( size_t  nstages,
bool  with_error = true 
)
inline

◆ get_error_estimate()

template<typename TVector >
number ug::AitkenNevilleTimex< TVector >::get_error_estimate ( int  k) const
inline

error estimate on stage k

References ug::AitkenNevilleTimex< TVector >::m_subdiag_error_est.

◆ get_error_estimates()

template<typename TVector >
const std::vector<number>& ug::AitkenNevilleTimex< TVector >::get_error_estimates ( ) const
inline

◆ get_global_stepsize()

template<typename TVector >
number ug::AitkenNevilleTimex< TVector >::get_global_stepsize ( )
inline

◆ get_solution()

template<typename TVector >
SmartPtr<vector_type> ug::AitkenNevilleTimex< TVector >::get_solution ( size_t  i)
inline

◆ set_error_estimate()

template<typename TVector >
void ug::AitkenNevilleTimex< TVector >::set_error_estimate ( SmartPtr< ISubDiagErrorEst< vector_type > >  subdiag)
inline

◆ set_global_stepsize()

template<typename TVector >
void ug::AitkenNevilleTimex< TVector >::set_global_stepsize ( number  H)
inline

◆ set_solution()

template<typename TVector >
void ug::AitkenNevilleTimex< TVector >::set_solution ( SmartPtr< vector_type soli,
int  i 
)
inline

◆ substep()

template<typename TVector >
number ug::AitkenNevilleTimex< TVector >::substep ( size_t  i)
inlineprotected

Member Data Documentation

◆ m_num_steps

template<typename TVector >
std::vector<size_t> ug::AitkenNevilleTimex< TVector >::m_num_steps
private

n_i: number of intermediate steps (per stage)

Referenced by ug::AitkenNevilleTimex< TVector >::apply(), and ug::AitkenNevilleTimex< TVector >::substep().

◆ m_order

template<typename TVector >
const int ug::AitkenNevilleTimex< TVector >::m_order =1
staticprivate

◆ m_solution

template<typename TVector >
std::vector<SmartPtr<vector_type> > ug::AitkenNevilleTimex< TVector >::m_solution
private

◆ m_stepsize

◆ m_subdiag

template<typename TVector >
SmartPtr<ISubDiagErrorEst<vector_type> > ug::AitkenNevilleTimex< TVector >::m_subdiag
private

◆ m_subdiag_error_est

template<typename TVector >
std::vector<number> ug::AitkenNevilleTimex< TVector >::m_subdiag_error_est
private

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