1 #include <boost/math/tools/promotion.hpp>
8 template <
typename T_lp,
typename T_lp_accum>
10 typename boost::math::tools::promote_args<T_lp, T_lp_accum>::type
13 return lp + lp_accum.
sum();
T sum() const
Return the sum of the accumulated values.
boost::math::tools::promote_args< T_lp, T_lp_accum >::type get_lp(const T_lp &lp, const stan::math::accumulator< T_lp_accum > &lp_accum)
Class to accumulate values and eventually return their sum.