1#ifndef STAN_MATH_PRIM_FUN_IS_NAN_HPP
2#define STAN_MATH_PRIM_FUN_IS_NAN_HPP
19template <
typename T, require_
integral_t<T>* =
nullptr>
33template <
typename T, require_
floating_po
int_t<T>* =
nullptr>
38template <
typename T, require_eigen_t<T>* =
nullptr>
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
bool isnan(const stan::math::var &a)
Checks if the given number is NaN.