1 #ifndef STAN_MATH_PRIM_SCAL_FUN_LOG_SUM_EXP_HPP 2 #define STAN_MATH_PRIM_SCAL_FUN_LOG_SUM_EXP_HPP 6 #include <boost/math/tools/promotion.hpp> 47 template <
typename T1,
typename T2>
48 inline typename boost::math::tools::promote_args<T1, T2>::type
log_sum_exp(
49 const T2& a,
const T1& b) {
fvar< T > log_sum_exp(const std::vector< fvar< T > > &v)
fvar< T > exp(const fvar< T > &x)
fvar< T > log1p_exp(const fvar< T > &x)