Plugins
ug::ScaledGridFunctionEstimator< TDomain, TAlgebra > Class Template Reference

Evaluate difference between two functions (w.r.t various norms) More...

#include <time_extrapolation.h>

+ Inheritance diagram for ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >:

Public Types

typedef ISubDiagErrorEst< TVectorbase_type
 
typedef CompositeSpace< grid_function_typecomposite_type
 
typedef GridFunction< TDomain, TAlgebra > grid_function_type
 
typedef IComponentSpace< grid_function_typesubspace_type
 

Public Member Functions

void add (SmartPtr< composite_type > spCompositeSpace)
 
void add (SmartPtr< subspace_type > spSubspace)
 
std::string config_string () const
 print config string More...
 
 ScaledGridFunctionEstimator ()
 
bool update (SmartPtr< TVector > vUpdate, number alpha, 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< TAlgebra::vector_type >
number get_current_estimate ()
 get estimate More...
 
 ISubDiagErrorEst ()
 
void reset_estimate ()
 
virtual ~ISubDiagErrorEst ()
 

Protected Types

typedef TAlgebra::vector_type TVector
 

Protected Attributes

std::vector< SmartPtr< subspace_type > > m_spSubspaces
 
- Protected Attributes inherited from ug::ISubDiagErrorEst< TAlgebra::vector_type >
number m_est
 

Detailed Description

template<class TDomain, class TAlgebra>
class ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >

Evaluate difference between two functions (w.r.t various norms)

Member Typedef Documentation

◆ base_type

template<class TDomain , class TAlgebra >
typedef ISubDiagErrorEst<TVector> ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::base_type

◆ composite_type

template<class TDomain , class TAlgebra >
typedef CompositeSpace<grid_function_type> ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::composite_type

◆ grid_function_type

template<class TDomain , class TAlgebra >
typedef GridFunction<TDomain, TAlgebra> ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::grid_function_type

◆ subspace_type

template<class TDomain , class TAlgebra >
typedef IComponentSpace<grid_function_type> ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::subspace_type

◆ TVector

template<class TDomain , class TAlgebra >
typedef TAlgebra::vector_type ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::TVector
protected

Constructor & Destructor Documentation

◆ ScaledGridFunctionEstimator()

template<class TDomain , class TAlgebra >
ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::ScaledGridFunctionEstimator ( )
inline

Member Function Documentation

◆ add() [1/2]

template<class TDomain , class TAlgebra >
void ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::add ( SmartPtr< composite_type spCompositeSpace)
inline

◆ add() [2/2]

template<class TDomain , class TAlgebra >
void ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::add ( SmartPtr< subspace_type spSubspace)
inline

◆ config_string()

template<class TDomain , class TAlgebra >
std::string ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::config_string ( ) const
inlinevirtual

◆ update()

template<class TDomain , class TAlgebra >
bool ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::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< TAlgebra::vector_type >.

References SmartPtr< class, FreePolicy >::invalid(), ug::ISubDiagErrorEst< TVector >::m_est, ug::ScaledGridFunctionEstimator< TDomain, TAlgebra >::m_spSubspaces, UG_LOGN, and ug::VecScaleAdd().

Member Data Documentation

◆ m_spSubspaces


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