|
OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
|
Functions | |
| template<typename T > | |
| 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 > | |
| T | deg (T x) |
| Convert radians to degrees. | |
| template<typename T > | |
| T | rad (T x) |
| Convert degrees to radians. | |
Convert radians to degrees.
Definition at line 73 of file matheval.hpp.
isinf function with adjusted return type
Definition at line 67 of file matheval.hpp.
isnan function with adjusted return type
Definition at line 61 of file matheval.hpp.
Convert degrees to radians.
Definition at line 79 of file matheval.hpp.
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 55 of file matheval.hpp.