Plugins
ug::NormInfEstimator< TVector > Class Template Reference

Evaluate using (algebraic) infinity norm. More...

#include <time_extrapolation.h>

+ Inheritance diagram for ug::NormInfEstimator< TVector >:

Public Member Functions

 NormInfEstimator ()
 
void set_offset (int offset)
 
void set_stride (int delta)
 
bool update (SmartPtr< TVector > vUpdate, number alpha2, SmartPtr< TVector > vFine, SmartPtr< TVector > vCoarse)
 compute update vUpdate = vFine + alpha * (vFine- vCoarse) AND estimate error | alpha * (vFine- vCoarse)| More...
 
- Public Member Functions inherited from ug::ISubDiagErrorEst< TVector >
virtual std::string config_string () const
 
number get_current_estimate ()
 get estimate More...
 
 ISubDiagErrorEst ()
 
void reset_estimate ()
 
virtual ~ISubDiagErrorEst ()
 

Protected Types

typedef ISubDiagErrorEst< TVector > base_type
 

Protected Attributes

int m_offset
 
int m_stride
 
- Protected Attributes inherited from ug::ISubDiagErrorEst< TVector >
number m_est
 

Detailed Description

template<class TVector>
class ug::NormInfEstimator< TVector >

Evaluate using (algebraic) infinity norm.

Optional: provide component offset o and stride s, such that vector is evaluated at vec[o+k*s]

Member Typedef Documentation

◆ base_type

template<class TVector >
typedef ISubDiagErrorEst<TVector> ug::NormInfEstimator< TVector >::base_type
protected

Constructor & Destructor Documentation

◆ NormInfEstimator()

template<class TVector >
ug::NormInfEstimator< TVector >::NormInfEstimator ( )
inline

Member Function Documentation

◆ set_offset()

template<class TVector >
void ug::NormInfEstimator< TVector >::set_offset ( int  offset)
inline

◆ set_stride()

template<class TVector >
void ug::NormInfEstimator< TVector >::set_stride ( int  delta)
inline

◆ update()

template<class TVector >
bool ug::NormInfEstimator< TVector >::update ( SmartPtr< TVector >  vUpdate,
number  alpha2,
SmartPtr< TVector >  vFine,
SmartPtr< TVector >  vCoarse 
)
inlinevirtual

compute update vUpdate = vFine + alpha * (vFine- vCoarse) AND estimate error | alpha * (vFine- vCoarse)|

Implements ug::ISubDiagErrorEst< TVector >.

References ug::ISubDiagErrorEst< TVector >::m_est, ug::NormInfEstimator< TVector >::m_offset, ug::NormInfEstimator< TVector >::m_stride, and ug::tools::VecScaleAddWithNormInf().

Member Data Documentation

◆ m_offset

template<class TVector >
int ug::NormInfEstimator< TVector >::m_offset
protected

◆ m_stride

template<class TVector >
int ug::NormInfEstimator< TVector >::m_stride
protected

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