All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
boost_isinf.hpp
Go to the documentation of this file.
#ifndef STAN_MATH_REV_SCAL_FUN_BOOST_ISINF_HPP
#define STAN_MATH_REV_SCAL_FUN_BOOST_ISINF_HPP
#include <boost/math/special_functions/fpclassify.hpp>
#include <stan/math/rev/core.hpp>
namespace boost {
namespace math {
template <>
inline
bool isinf(const stan::math::var& v) {
return (boost::math::isinf)(v.val());
}
}
}
#endif
core.hpp
stan::math::var
Independent (input) and dependent (output) variables for gradients.
Definition: var.hpp:32
boost::math::isinf
bool isinf(const stan::math::var &v)
Checks if the given number is infinite.
Definition: boost_isinf.hpp:22
stan::math::var::val
double val() const
Return the value of this variable.
Definition: var.hpp:234

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