Commit 51a1bdaa authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

add expression abs() to gridfunctions

parent 95a126a5
......@@ -113,6 +113,13 @@ namespace AMDiS
return invokeAtQP(Operation::Clamp<T>{lo,hi}, FWD(v));
template <class T,
auto abs(T&& value)
return invokeAtQP([](auto const& v) { using std::abs; return abs(v); }, FWD(value));
/// \brief Applies \ref Operation::Sqr to GridFunction. \relates FunctorGridFunction
template <class T,
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment