is_inf.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_PRIM_SCAL_FUN_IS_INF_HPP
#define STAN_MATH_PRIM_SCAL_FUN_IS_INF_HPP
#include <boost/math/special_functions/fpclassify.hpp>
namespace stan {
namespace math {
inline int
is_inf(double x) {
return boost::math::isinf(x);
}
}
}
#endif
stan
Definition: log_sum_exp.hpp:8
boost::math::isinf
bool isinf(const stan::math::var &v)
Checks if the given number is infinite.
Definition: boost_isinf.hpp:22
stan::math::is_inf
int is_inf(const fvar< T > &x)
Returns 1 if the input&#39;s value is infinite and 0 otherwise.
Definition: is_inf.hpp:21

[ Stan Home Page ] © 2011–2016, Stan Development Team.