| 77 | // Returns true if x and y are equal up to the absolute or relative difference eps. |
| 78 | template <typename Float> |
| 79 | bool AlmostEqualAbsOrRel(Float x, Float y, Float eps) |
| 80 | { |
| 81 | return AlmostEqualAbs(x, y, eps) || AlmostEqualRel(x, y, eps); |
| 82 | } |
| 83 | |
| 84 | namespace math |
| 85 | { |