3#ifndef DUNE_Q1_LOCALINTERPOLATION_HH
4#define DUNE_Q1_LOCALINTERPOLATION_HH
12 template<
int dim,
class LB>
18 template<
typename F,
typename C>
21 typename LB::Traits::DomainType x;
22 typename LB::Traits::RangeType y;
26 for (
int i=0; i< (1<<dim); i++) {
31 for (
int j=0; j<dim; j++)
32 x[j] = (i & (1<<j)) ? 1.0 : 0.0;
34 f.evaluate(x,y); out[i] = y;
Definition: q1localinterpolation.hh:14
void interpolate(const F &f, std::vector< C > &out) const
Local interpolation of a function.
Definition: q1localinterpolation.hh:19
Dune namespace.
Definition: alignedallocator.hh:10