|
OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
|
Functions | |
| template<typename T > | |
| constexpr T | sgn (T x) |
| Sign function. | |
| template<typename T > | |
| T | isnan (T x) |
| isnan function with adjusted return type | |
| template<typename T > | |
| T | isinf (T x) |
| isinf function with adjusted return type | |
| template<typename T > | |
| constexpr T | deg (T x) |
| Convert radians to degrees. | |
| template<typename T > | |
| constexpr T | rad (T x) |
| Convert degrees to radians. | |
|
inlineconstexpr |
| T matheval::detail::math::isinf | ( | T | x | ) |
isinf function with adjusted return type
Definition at line 74 of file matheval.hpp.
| T matheval::detail::math::isnan | ( | T | x | ) |
isnan function with adjusted return type
Definition at line 70 of file matheval.hpp.
|
inlineconstexpr |
|
constexpr |
Sign function.
Missing function in the STL. This calculates the mathematical sign function.
\[ \mathop{\mathrm{sgn}}(x) = \begin{cases} 1 & x > 0 \\ 0 & x = 0 \\ -1 & x < 0 \\ \end{cases} \]
| [in] | x | number |
Definition at line 66 of file matheval.hpp.