![]() |
Dune-Fufem 2.12-git
|
Loading...
Searching...
No Matches
productoperator.hh
Go to the documentation of this file.
68 using Range = decltype(std::declval<Contraction>()(std::declval<typename Operator0::Range>(), std::declval<typename Operator1::Range>()));
70 ProductOperator(const Contraction& product, const Operator0& operator0, const Operator1& operator1) :
77 static_assert(Operator0::arity+Operator1::arity <= 2, "ProductOperator: Arity sum of factors must not exceed 2");
79 static_assert((Operator0::argIndex==0) and (Operator1::argIndex==1), "ProductOperator: Factors must be ordered according to argument index.");
94 LocalOperator(const Contraction& product, LocalOperator0&& localOperator0, LocalOperator1&& localOperator1):
109 quadratureRuleKey_ = localOperator0_.quadratureRuleKey().product(localOperator1_.quadratureRuleKey());
112 void bind(const Intersection& intersection, const Element& element, const Element& otherElement)
116 quadratureRuleKey_ = localOperator0_.quadratureRuleKey().product(localOperator1_.quadratureRuleKey());
212 return LocalOperator(productOperator.contraction(), localOperator(productOperator.operator0()), localOperator(productOperator.operator1()));
215 friend LocalFunctionAdaptor<LocalOperator> localFunction(const ProductOperator& productOperator)
static constexpr IntegralRange< T > range(T from, T to) noexcept
std::ptrdiff_t index() const
Adaptor for turning a Fufem::Forms LocalOperator into a LocalFunction.
Definition localfunctionadaptor.hh:43
Base class for multilinear operator implementations.
Definition baseclass.hh:73
Definition productoperator.hh:83
typename LocalOperator0::Intersection Intersection
Definition productoperator.hh:90
void registerOutsideLocalViews(const LV &... lvs)
Definition productoperator.hh:133
auto operator()(std::size_t index) const
Definition productoperator.hh:174
void bind(const Element &element)
Definition productoperator.hh:105
typename ProductOperator::Range Range
Definition productoperator.hh:92
void registerCaches(CacheManager &cacheManager)
Definition productoperator.hh:139
typename LocalOperator0::CacheManager CacheManager
Definition productoperator.hh:91
void registerOutsideCaches(CacheManager &cacheManager)
Definition productoperator.hh:145
typename LocalOperator0::Element Element
Definition productoperator.hh:89
void bind(const Intersection &intersection, const Element &element, const Element &otherElement)
Definition productoperator.hh:112
auto quadratureRuleKey() const
Definition productoperator.hh:100
void registerLocalViews(const LV &... lvs)
Definition productoperator.hh:126
void bindToCaches(CacheManager &cacheManager, OutsideCacheManager &... outsideCacheManager)
Definition productoperator.hh:152
LocalOperator(const Contraction &product, LocalOperator0 &&localOperator0, LocalOperator1 &&localOperator1)
Definition productoperator.hh:94
void unbind()
Definition productoperator.hh:119
Generic product of two multilinear operators.
Definition productoperator.hh:60
const Operator1 & operator1() const
Definition productoperator.hh:226
ProductOperator(const Contraction &product, const Operator0 &operator0, const Operator1 &operator1)
Definition productoperator.hh:70
friend LocalOperator localOperator(const ProductOperator &productOperator)
Definition productoperator.hh:210
decltype(std::declval< Contraction >()(std::declval< typename Operator0::Range >(), std::declval< typename Operator1::Range >())) Range
Definition productoperator.hh:68
const Operator0 & operator0() const
Definition productoperator.hh:221
const Contraction & contraction() const
Definition productoperator.hh:231
friend LocalFunctionAdaptor< LocalOperator > localFunction(const ProductOperator &productOperator)
Definition productoperator.hh:215
auto rebindArgIndex() const
Get a copy of this operator bound to another argument.
Definition productoperator.hh:249
typename Operator0::Element Element
Definition productoperator.hh:67
Base class for unary multilinear operator implementations.
Definition baseclass.hh:91
T forward(T... args)
auto product(const Op &op, const L &l, const R &r)
Generic exterior product of two multilinear operators.
Definition userfunctions.hh:401
Definition baseclass.hh:22
STL namespace.
T cref(T... args)
T resize(T... args)
T size(T... args)
T tuple_cat(T... args)
