diff --git a/src/utils/Math.h b/src/utils/Math.h index 873782615a..51b5e32bdc 100644 --- a/src/utils/Math.h +++ b/src/utils/Math.h @@ -63,7 +63,7 @@ inline void LinearRegression(const std::vector& x, const std::vector& y, * @return true * @return false */ -bool inline isNearRel(double a, double b, double maxRelativeDifference = 1e-9) +bool isNearRel(double a, double b, double maxRelativeDifference = 1e-9) { const auto greaterNumber = std::max(std::abs(a), std::abs(b)); const auto absoluteDifference = maxRelativeDifference * greaterNumber; @@ -77,5 +77,5 @@ bool inline isNearRel(double a, double b, double maxRelativeDifference = 1e-9) * @param n the number to be checked * @return int -1 if the number is negative, and 1 otherwise */ -inline short int findSign(int n) { return n < 0 ? -1 : 1; } +short int findSign(int n) { return n < 0 ? -1 : 1; } #endif /* MATH_H_ */