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)
26 if constexpr(Concepts::HasIndexAccess<Range, Dune::index_constant<0>>)
28 return Dune::Functions::resolveStaticMultiIndex(y, treePath);
31 return std::forward<Range>(y);
40 template <
class TreePath,
class 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: HierarchicNodeToRangeMap.hpp:42
Definition: DerivativeTraits.hpp:19