std_isnan.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_STD_ISNAN_HPP
2 #define STAN_MATH_REV_CORE_STD_ISNAN_HPP
3 
5 #include <cmath>
6 
7 namespace std {
8 
9 /**
10  * Checks if the given number is NaN.
11  *
12  * Return <code>true</code> if the value of the
13  * specified variable is not a number.
14  *
15  * @param a Variable to test.
16  * @return <code>true</code> if value is not a number.
17  */
18 inline int isnan(const stan::math::var& a) { return isnan(a.val()); }
19 
20 } // namespace std
21 #endif
int isnan(const stan::math::var &a)
Definition: std_isnan.hpp:18
const double a
double val() const
Definition: var.hpp:294