1 #ifndef STAN__MATH__FUNCTIONS__LOG_DIFF_EXP_HPP
2 #define STAN__MATH__FUNCTIONS__LOG_DIFF_EXP_HPP
4 #include <boost/math/tools/promotion.hpp>
6 #include <boost/throw_exception.hpp>
47 template <
typename T1,
typename T2>
48 inline typename boost::math::tools::promote_args<T1,T2>::type
51 return std::numeric_limits<double>::quiet_NaN();
boost::math::tools::promote_args< T1, T2 >::type log_diff_exp(const T1 x, const T2 y)
The natural logarithm of the difference of the natural exponentiation of x1 and the natural exponenti...
boost::math::tools::promote_args< T >::type log1m_exp(const T a)
Calculates the log of 1 minus the exponential of the specified value without overflow log1m_exp(x) = ...