Function Dune::XT::Functions::make_transformed_function¶
-
template<size_t new_r, size_t new_rC, class new_R, class E, size_t r, size_t rC, class R>
TransformedGridFunction<GridFunctionInterface<E, r, rC, R>, new_r, new_rC, new_R> Dune::XT::Functions::make_transformed_function(const GridFunctionInterface<E, r, rC, R> &function, std::function<typename TransformedGridFunction<GridFunctionInterface<E, r, rC, R>, new_r, new_rC, new_R>::TransformedRangeType(const typename TransformedGridFunction<GridFunctionInterface<E, r, rC, R>, new_r, new_rC, new_R>::UntransformedRangeType&)> transformation, const std::string &name =<recovery-expr>("xt.functions.transformed"))¶ Creates a TransformedGridFunction applying the given transformation to the evaluations of function.