diff --git a/DiFfRG/include/DiFfRG/common/math.hh b/DiFfRG/include/DiFfRG/common/math.hh index f47f85f..8c41e1a 100644 --- a/DiFfRG/include/DiFfRG/common/math.hh +++ b/DiFfRG/include/DiFfRG/common/math.hh @@ -92,8 +92,7 @@ namespace DiFfRG */ template constexpr __forceinline__ __host__ __device__ double sign(const NumberType x) { - if (x >= 0) return 1.; - return -1.; + return x >= 0. ? 1. : -1.; } /**