Commit 4dee72cf authored by Praetorius, Simon's avatar Praetorius, Simon
Browse files

Merge branch 'feature/abs_gridfunction' into 'master'

add expression abs() to gridfunctions

See merge request !7
parents cb01fd46 51a1bdaa
......@@ -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,
Markdown is supported
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