checks if a value is NaN for various numerical types
More...
#include <MHO_CheckForNaN.hh>
|
bool | isnan (const double &value) |
| Checks if a given double value is NaN. More...
|
|
bool | isnan (const float &value) |
| Checks if a float value is NaN using std::isnan. More...
|
|
bool | isnan (const long double &value) |
| Checks if a given value is Not-a-Number (NaN) using standard library's isnan(). More...
|
|
bool | isnan (const std::complex< double > &value) |
| Checks if a complex double value is NaN by examining its real and imaginary parts. More...
|
|
bool | isnan (const std::complex< float > &value) |
| Checks if a complex float value is NaN by examining its real and imaginary parts. More...
|
|
bool | isnan (const std::complex< long double > &value) |
| Checks if a complex long double value is NaN by examining its real and imaginary parts. More...
|
|
checks if a value is NaN for various numerical types
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Thu Aug 12 11:16:36 2021 -0400
◆ isnan() [1/6]
Checks if a given double value is NaN.
- Parameters
-
value | Input double value to check for NaN. |
- Returns
- True if value is NaN, false otherwise.
◆ isnan() [2/6]
Checks if a float value is NaN using std::isnan.
- Parameters
-
value | Input float value to check for NaN. |
- Returns
- Boolean indicating whether the input value is NaN.
◆ isnan() [3/6]
Checks if a given value is Not-a-Number (NaN) using standard library's isnan().
- Parameters
-
value | Input long double value to check for NaN |
- Returns
- Boolean indicating whether the input value is NaN or not
◆ isnan() [4/6]
bool MHO_CheckForNaN< std::complex< double > >::isnan |
( |
const std::complex< double > & |
value | ) |
|
|
inline |
Checks if a complex double value is NaN by examining its real and imaginary parts.
- Parameters
-
value | Input complex double value to check for NaN. |
- Returns
- True if either real or imaginary part is NaN, false otherwise.
◆ isnan() [5/6]
bool MHO_CheckForNaN< std::complex< float > >::isnan |
( |
const std::complex< float > & |
value | ) |
|
|
inline |
Checks if a complex float value is NaN by examining its real and imaginary parts.
- Parameters
-
value | Input complex float value to check for NaN. |
- Returns
- True if either real or imaginary part is NaN, false otherwise.
◆ isnan() [6/6]
bool MHO_CheckForNaN< std::complex< long double > >::isnan |
( |
const std::complex< long double > & |
value | ) |
|
|
inline |
Checks if a complex long double value is NaN by examining its real and imaginary parts.
- Parameters
-
value | Input complex number to check for NaN |
- Returns
- True if either real or imaginary part is NaN, false otherwise
The documentation for this class was generated from the following file: