1 #ifndef STAN_MATH_PRIM_SCAL_FUN_FDIM_HPP
2 #define STAN_MATH_PRIM_SCAL_FUN_FDIM_HPP
5 #include <boost/math/special_functions/fpclassify.hpp>
6 #include <boost/math/tools/promotion.hpp>
24 template <
typename T1,
typename T2>
25 inline typename boost::math::tools::promote_args<T1, T2>::type
28 using std::numeric_limits;
29 using boost::math::tools::promote_args;
31 return numeric_limits<typename promote_args<T1, T2>::type>::quiet_NaN();
bool isnan(const stan::math::var &v)
Checks if the given number is NaN.
fvar< T > fdim(const fvar< T > &x1, const fvar< T > &x2)
var fdim(const stan::math::var &a, const double &b)
Return the positive difference between the first variable's value and the second value (C99)...