dune-localfunctions
2.7.0
|
Go to the documentation of this file.
4 #ifndef DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
5 #define DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
21 std::vector<LocalKey> keys;
33 template<
class Backend>
35 keys(backend.
size()*power)
37 for(std::size_t i = 0; i < backend.size(); ++i) {
38 const LocalKey &k = backend.localKey(i);
39 for(std::size_t d = 0; d < power; ++d)
40 keys[i+d*backend.size()] =
45 inline std::size_t
size()
const {
return keys.size(); }
53 #endif // DUNE_LOCALFUNCTIONS_META_POWER_COEFFICIENTS_HH
std::size_t size() const
number of coefficients
Definition: meta/power/coefficients.hh:45
PowerCoefficients(const Backend &backend, std::size_t power)
Construct a PowerCoefficients object.
Definition: meta/power/coefficients.hh:34
unsigned int codim() const
Return codim of associated entity.
Definition: localkey.hh:60
Definition: bdfmcube.hh:15
unsigned int subEntity() const
Return number of associated subentity.
Definition: localkey.hh:54
const LocalKey & localKey(std::size_t i) const
get i'th index
Definition: meta/power/coefficients.hh:48
Meta-coefficients turning a scalar coefficients into vector-valued coefficients.
Definition: meta/power/coefficients.hh:20
unsigned int index() const
Return offset within subentity.
Definition: localkey.hh:66
Describe position of one degree of freedom.
Definition: localkey.hh:20