4 #ifndef DUNE_LOCALFUNCTIONS_META_POWER_HH 5 #define DUNE_LOCALFUNCTIONS_META_POWER_HH 10 #include <dune/geometry/type.hh> 26 template<
class Backend, std::
size_t dimR>
40 std::shared_ptr<const Backend> backend;
52 backend(new Backend(backend_)),
53 basis_(backend->
basis()),
65 basis_(backend->
basis()),
82 {
return coefficients_; }
89 {
return interpolation_; }
91 GeometryType
type()
const {
return backend->type(); }
103 template<
class BackendFiniteElement, std::
size_t dimR>
115 const FiniteElement
make(
const BackendFiniteElement &backend)
const 116 {
return FiniteElement(backend); }
123 make(
const std::shared_ptr<const BackendFiniteElement> &backendSPtr)
const 124 {
return FiniteElement(backendSPtr); }
130 #endif // DUNE_LOCALFUNCTIONS_META_POWER_HH Meta-finite element turning a scalar finite element into vector-valued one.
Definition: power.hh:27
const FiniteElement make(const BackendFiniteElement &backend) const
create a finite element
Definition: power.hh:115
const FiniteElement make(const std::shared_ptr< const BackendFiniteElement > &backendSPtr) const
create a finite element
Definition: power.hh:123
PowerInterpolation< typename Backend::Traits::Interpolation, typename Basis::Traits > Interpolation
type of the Interpolation
Definition: power.hh:37
types of component objects
Definition: power.hh:30
PowerFiniteElement(const Backend &backend_)
Construct a finite element.
Definition: power.hh:51
const Traits::Interpolation & interpolation() const
Extract interpolation of this finite element.
Definition: power.hh:88
Meta-interpolation turning a scalar interpolation into vector-valued interpolation.
Definition: meta/power/interpolation.hh:23
Definition: brezzidouglasmarini1cube2dlocalbasis.hh:14
const Traits::Basis & basis() const
Extract basis of this finite element.
Definition: power.hh:75
Meta-coefficients turning a scalar coefficients into vector-valued coefficients.
Definition: meta/power/coefficients.hh:20
PowerFiniteElement< BackendFiniteElement, dimR > FiniteElement
Type of the finite element.
Definition: power.hh:108
PowerBasis< typename Backend::Traits::Basis, dimR > Basis
type of the Basis
Definition: power.hh:32
GeometryType type() const
Extract geometry type of this finite element.
Definition: power.hh:91
const Traits::Coefficients & coefficients() const
Extract coefficients of this finite element.
Definition: power.hh:81
Factory for meta-finite elements turning scalar finite elements into vector-valued ones...
Definition: power.hh:104
PowerCoefficients Coefficients
type of the Coefficients
Definition: power.hh:34
PowerFiniteElement(const std::shared_ptr< const Backend > &backendSPtr)
Construct a finite element.
Definition: power.hh:63