std_isinf.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_REV_CORE_STD_ISINF_HPP
2 #define STAN_MATH_REV_CORE_STD_ISINF_HPP
3 
6 
7 namespace std {
8 
9 /**
10  * Return <code>1</code> if the specified argument is positive
11  * infinity or negative infinity and <code>0</code> otherwise.
12  *
13  * @param a Argument.
14  * @return 1 if argument is infinite and 0 otherwise.
15  */
16 inline int isinf(const stan::math::var& a) {
17  return stan::math::is_inf(a.val());
18 }
19 
20 } // namespace std
21 #endif
int isinf(const stan::math::var &a)
Definition: std_isinf.hpp:16
const double a
int is_inf(const fvar< T > &x)
Definition: is_inf.hpp:19
double val() const
Definition: var.hpp:294