Function Dune::XT::Common::maxmod

Function template Dune::XT::Common::maxmod

template<class T>
std::enable_if_t<std::is_arithmetic<T>::value, T> Dune::XT::Common::maxmod(const T left, const T right)

maxmod limiter: returns 0 if the arguments have opposite signs, else the one larger in magnitude