dune-localfunctions  2.1.1
Classes | Public Types | Public Member Functions
Dune::PowerInterpolation< Backend, BasisTraits > Class Template Reference

Meta-interpolation turning a scalar interpolation into vector-valued interpolation. More...

#include <dune/localfunctions/meta/power/interpolation.hh>

Inheritance diagram for Dune::PowerInterpolation< Backend, BasisTraits >:
Inheritance graph

List of all members.

Classes

class  ComponentEvaluator

Public Types

typedef BasisTraits Traits
 Export basis traits.

Public Member Functions

 PowerInterpolation (const Backend &backend_)
 Construct a PowerInterpolation.
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 Backend, class BasisTraits>
class Dune::PowerInterpolation< Backend, BasisTraits >

Meta-interpolation turning a scalar interpolation into vector-valued interpolation.

Template Parameters:
BackendType of the scalar interpolation.
BasisTraitsTraits type of the corresponding PowerBasis.

Member Typedef Documentation

template<class Backend, class BasisTraits>
typedef BasisTraits Dune::PowerInterpolation< Backend, BasisTraits >::Traits

Export basis traits.


Constructor & Destructor Documentation

template<class Backend, class BasisTraits>
Dune::PowerInterpolation< Backend, BasisTraits >::PowerInterpolation ( const Backend &  backend_) [inline]

Construct a PowerInterpolation.

Parameters:
backend_Backend interpolation object to construct this object from. This object holds a reference to the backend object. This reference is also copied when this object is copied.

Member Function Documentation

template<class Backend, class BasisTraits>
template<typename F , typename C >
void Dune::PowerInterpolation< Backend, BasisTraits >::interpolate ( const F &  f,
std::vector< C > &  out 
) const [inline]

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: