6 #include <dune/common/concept.hh> 7 #include <dune/functions/common/indexaccess.hh> 9 #include <amdis/common/Concepts.hpp> 10 #include <amdis/common/DerivativeTraits.hpp> 23 template <
class TreePath,
class Range>
24 decltype(
auto) hierarchicNodeToRangeMap(const TreePath& treePath, Range&& y)
28 return
Dune::Functions::resolveStaticMultiIndex(y, treePath);
31 return
std::forward<Range>(y);
40 template <class TreePath, class F>
43 HierarchicNodeWrapper(TreePath
const& tp, F
const& f)
48 template <
class Domain>
49 auto operator() (Domain
const& x)
const 51 return hierarchicNodeToRangeMap(tp_, Dune::MatVec::as_vector(f_(x)));
57 df.bind(t.f_.localContext());
Definition: AdaptiveGrid.hpp:393
Definition: FieldMatVec.hpp:12
Definition: AdaptBase.hpp:6
constexpr bool HasIndexAccess
A Dune::Functions::HasIndexAccess type.
Definition: Concepts.hpp:157
Definition: DerivativeTraits.hpp:19
Definition: HierarchicNodeToRangeMap.hpp:41