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