Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ is_nan() [2/4]

template<typename T , require_integral_t< T > * = nullptr>
bool stan::math::is_nan ( x)
inline

Tests if the input is Not a Number (NaN)

Integer specialization, always return false.

Template Parameters
TInteger type.
Parameters
xValue to test.
Returns
false.

Delegates to std::isnan.

Template Parameters
TFloating point type.
Parameters
xValue to test.
Returns
true if the value is NaN.

Definition at line 20 of file is_nan.hpp.