Automatic Differentiation
 
Loading...
Searching...
No Matches
isnan.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_SCAL_FUN_ISNAN_HPP
2#define STAN_MATH_PRIM_SCAL_FUN_ISNAN_HPP
3
6
7namespace stan {
8namespace math {
9
20template <typename T, typename = require_autodiff_t<T>>
21inline bool isnan(const T& x) {
22 return is_nan(x);
23}
24
25} // namespace math
26} // namespace stan
27
28#endif
bool is_nan(T &&x)
Returns 1 if the input's value is NaN and 0 otherwise.
Definition is_nan.hpp:22
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Definition fvar.hpp:9