dune-localfunctions  2.2.1
Public Types | Public Member Functions | List of all members
Dune::InterpolationInterface Struct Reference

Interface for global-valued interpolation. More...

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

Inheritance diagram for Dune::InterpolationInterface:
Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, Traits_ > Dune::LocalToGlobalInterpolationAdaptor< LocalInterpolation, typename Basis::Traits > Dune::LocalToGlobalInterpolationAdaptor< typename LocalFiniteElement::Traits::LocalInterpolationType, typename Basis::Traits >

Public Types

typedef BasisInterface::Traits Traits
 Export basis traits. More...
 

Public Member Functions

template<typename F , typename C >
void interpolate (const F &f, std::vector< C > &out) const
 Determine coefficients interpolating a given function. More...
 

Detailed Description

Interface for global-valued interpolation.

Member Typedef Documentation

Export basis traits.

This should be the traits class of the corresponding basis.

Member Function Documentation

template<typename F , typename C >
void Dune::InterpolationInterface::interpolate ( const F &  f,
std::vector< C > &  out 
) const

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 struct was generated from the following file: