1 #ifndef STAN__MATH__FUNCTIONS__FDIM_HPP
2 #define STAN__MATH__FUNCTIONS__FDIM_HPP
5 #include <boost/math/special_functions/fpclassify.hpp>
6 #include <boost/math/tools/promotion.hpp>
21 template <
typename T1,
typename T2>
22 inline typename boost::math::tools::promote_args<T1, T2>::type
25 return std::numeric_limits<typename boost::math::tools::promote_args<T1, T2>::type>
bool isnan(const stan::agrad::var &v)
Checks if the given number is NaN.
boost::math::tools::promote_args< T1, T2 >::type fdim(T1 a, T2 b)
The positive difference function (C99).