Math utilities. More...
Go to the source code of this file.
Functions | |
| template<typename T > | |
| int | sgn (T val) |
| Return the sign of the given value (-1, 0 or +1). More... | |
Math utilities.
Definition in file math_utils.hpp.
|
inline |
Return the sign of the given value (-1, 0 or +1).
| T | Type of the number. |
| val | The value to get sign of. |
Definition at line 17 of file math_utils.hpp.