6 #ifndef DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
7 #define DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
23 std::vector<LocalKey> keys;
35 template<
class Backend>
37 keys(backend.
size()*power)
39 for(std::size_t i = 0; i < backend.size(); ++i) {
40 const LocalKey &k = backend.localKey(i);
41 for(std::size_t d = 0; d < power; ++d)
42 keys[i+d*backend.size()] =
47 inline std::size_t
size()
const {
return keys.size(); }
Definition: bdfmcube.hh:18
Describe position of one degree of freedom.
Definition: localkey.hh:23
unsigned int index() const
Return offset within subentity.
Definition: localkey.hh:68
unsigned int codim() const
Return codim of associated entity.
Definition: localkey.hh:62
unsigned int subEntity() const
Return number of associated subentity.
Definition: localkey.hh:56
Meta-coefficients turning a scalar coefficients into vector-valued coefficients.
Definition: meta/power/coefficients.hh:22
std::size_t size() const
number of coefficients
Definition: meta/power/coefficients.hh:47
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: meta/power/coefficients.hh:50
PowerCoefficients(const Backend &backend, std::size_t power)
Construct a PowerCoefficients object.
Definition: meta/power/coefficients.hh:36