4#ifndef DUNE_LOCALFUNCTIONS_QKLOCALINTERPOLATION_HH
5#define DUNE_LOCALFUNCTIONS_QKLOCALINTERPOLATION_HH
12#include <dune/localfunctions/common/localbasis.hh>
13#include <dune/localfunctions/common/localfiniteelementtraits.hh>
19 template<
int k,
int d,
class LB>
27 for (
int j=0; j<d; j++)
38 template<
typename F,
typename C>
41 typename LB::Traits::DomainType x;
42 typename LB::Traits::RangeType y;
46 for (
int i=0; i<StaticPower<k+1,d>::power; i++)
52 for (
int j=0; j<d; j++)
53 x[j] = (1.0*alpha[j])/k;
55 f.evaluate(x,y); out[i] = y;
61 template<
int d,
class LB>
66 template<
typename F,
typename C>
69 typename LB::Traits::DomainType x(0);
70 typename LB::Traits::RangeType y;
vector space out of a tensor product of fields.
Definition: fvector.hh:93
void interpolate(const F &f, std::vector< C > &out) const
Local interpolation of a function.
Definition: qklocalinterpolation.hh:67
Definition: qklocalinterpolation.hh:21
void interpolate(const F &f, std::vector< C > &out) const
Local interpolation of a function.
Definition: qklocalinterpolation.hh:39
Various implementations of the power function for run-time and static arguments.
Implements a vector constructed from a given type representing a field and a compile-time given size.
Dune namespace.
Definition: alignedallocator.hh:10
Calculates m^p at compile time.
Definition: power.hh:20
A unique label for each type of element that can occur in a grid.