![]() |
G+Smo
25.01.0
Geometry + Simulation Modules
|
This namespace contains common mathematical functions. More...
Classes | |
| struct | numeric_limits |
Functions | |
| template<typename T > | |
| util::make_unsigned< T >::type | abs_diff (T a, T b) |
| template<typename T > | |
| int | getSign (T val) |
| Returns the sign of val. | |
| int | ipow (int x, unsigned exp) |
| integer power | |
| unsigned | isqrt (unsigned value) |
| integer square root | |
| template<class T > | |
| T | mix (T const &a, T const &b, T const &t) |
| Returns convex combination of a and b with weight t. | |
| template<typename T > | |
| T | nextafter (T x, T y) |
This namespace contains common mathematical functions.
|
inline |
Return smallest difference between two (integer)T numbers as unsigned T especially the case abs_diff(INT32_MAX, INT32_MIN) := UINT32_MAX is correct
|
inline |
For numeric types, this function returns the next representable value after x in the direction of y