dune-localfunctions  2.2.0
Public Types | Public Member Functions
Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ > Class Template Reference

Convert a local interpolation into a global interpolation. More...

#include <dune/localfunctions/common/localtoglobaladaptors.hh>

Inheritance diagram for Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ >:
Inheritance graph

List of all members.

Public Types

typedef Traits_ Traits
 Export basis traits.

Public Member Functions

 LocalToGlobalInterpolationAdaptor (const LocalInterpolation &localInterpolation_)
 construct a LocalToGlobalInterpolationAdaptor
template<class Function , class Coeff >
void interpolate (const Function &function, std::vector< Coeff > &out) const
template<typename F , typename C >
void interpolate (const F &f, std::vector< C > &out) const
 Determine coefficients interpolating a given function.

Detailed Description

template<class LocalInterpolation, class Traits_>
class Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ >

Convert a local interpolation into a global interpolation.

Template Parameters:
LocalInterpolationType of the local interpolation to adapt.
Traits_Traits of the corresposnding basis class.

Member Typedef Documentation

template<class LocalInterpolation, class Traits_>
typedef Traits_ Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ >::Traits

Export basis traits.

This should be the traits class of the corresponding basis.

Reimplemented from Dune::InterpolationInterface.


Constructor & Destructor Documentation

template<class LocalInterpolation, class Traits_>
Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ >::LocalToGlobalInterpolationAdaptor ( const LocalInterpolation &  localInterpolation_)
inline

construct a LocalToGlobalInterpolationAdaptor

Parameters:
localInterpolation_The local interpolation object to adapt.
Note:
This class stores the reference to the local interpolation object passed here. Any use of this class after the reference have become invalid results in undefined behaviour. The exception is that the destructor of this class may still be called.

Member Function Documentation

template<class LocalInterpolation, class Traits_>
template<class Function , class Coeff >
void Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ >::interpolate ( const Function &  function,
std::vector< Coeff > &  out 
) const
inline
template<typename F , typename C >
void Dune::InterpolationInterface::interpolate ( const F &  f,
std::vector< C > &  out 
) const
inherited

Determine coefficients interpolating a given function.

Parameters:
fAn object supporting the expression f.evaluate(x,y), where x is of type Traits::DomainLocal and y of the type Traits::Range. When f.evaluate(x,y) is evaluated, x will be a local coordinate , and the expression should set y to the function value at that position. The initial value of y should not be used.
outVector where to store the interpolated coefficients.

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