Number checks.
More...
◆ is_between()
template<typename T >
static constexpr bool hermes::Check::is_between |
( |
T |
x, |
|
|
T |
a, |
|
|
T |
b |
|
) |
| |
|
inlinestaticconstexpr |
Checks if a number is in a open interval.
- Template Parameters
-
- Parameters
-
- Returns
- constexpr bool
◆ is_between_closed()
template<typename T >
static constexpr bool hermes::Check::is_between_closed |
( |
T |
x, |
|
|
T |
a, |
|
|
T |
b |
|
) |
| |
|
inlinestaticconstexpr |
Checks if a number is in a closed interval.
- Template Parameters
-
- Parameters
-
- Returns
- constexpr bool
◆ is_equal() [1/2]
Checks if two numbers are at most 1e-8 apart.
- Template Parameters
-
- Parameters
-
- Returns
- constexpr bool
◆ is_equal() [2/2]
Checks if two numbers are at most to a threshold apart.
- Template Parameters
-
- Parameters
-
- Returns
- constexpr bool
◆ is_nan()
template<typename T >
static HERMES_DEVICE_CALLABLE std::enable_if_t<std::is_floating_point<T>::value, bool> hermes::Check::is_nan |
( |
T |
v | ) |
|
|
inlinestatic |
Checks if number representation is nan
- Template Parameters
-
- Parameters
-
- Returns
◆ is_zero()
Checks if number is 0.
- Template Parameters
-
- Parameters
-
- Returns
- constexpr bool
The documentation for this struct was generated from the following file: