DUNE-ACFEM (unstable)
Dune::ACFem::Expressions::impl::EvaluateSubExpression< Functor > Struct Template Reference
Operation functor for transform() which evaluates all contained sub-expressions. More...
#include <dune/acfem/expressions/subexpression.hh>
Detailed Description
template<class Functor>
struct Dune::ACFem::Expressions::impl::EvaluateSubExpression< Functor >
struct Dune::ACFem::Expressions::impl::EvaluateSubExpression< Functor >
Operation functor for transform() which evaluates all contained sub-expressions.
- Parameters
-
Clear If true
then instead of evaluation the sub-expressions all writable cache expressions are set to their canonical zero() object.
- Note
- This may not be what one wants to do if an expression contains common subexpressions. How, common subexpression optimization requires more knowledge and work, e.g. replacing all common subexpressions by a reference to a copy outside of the expression, or by replacing operand 0 (the storage cache for the value of the subexpression) by a reference to an external storage. So this function is rather a proof of concept.
The documentation for this struct was generated from the following file:
- dune/acfem/expressions/subexpression.hh
