Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
remove inlines

Co-authored-by: FG-TUM <[email protected]>
  • Loading branch information
amartyads and FG-TUM authored Nov 28, 2024
1 parent ad6cbac commit b553971
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/Math.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ inline void LinearRegression(const std::vector<T1>& x, const std::vector<T1>& 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;
Expand All @@ -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_ */

0 comments on commit b553971

Please sign in to comment.