10 #ifndef LARDATAALG_UTILITIES_CONSTEXPR_MATH_H 11 #define LARDATAALG_UTILITIES_CONSTEXPR_MATH_H 40 constexpr
auto abs(
T v) {
return (-
T(0) < v)? v: -v; }
49 #endif // LARDATAALG_UTILITIES_CONSTEXPR_MATH_H Namespace for general, non-LArSoft-specific utilities.
constexpr auto abs(T v)
Returns the absolute value of the argument.