Automatic Differentiation
 
Loading...
Searching...
No Matches
get_lp.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_FUN_GET_LP_HPP
2#define STAN_MATH_PRIM_FUN_GET_LP_HPP
3
5
6namespace stan {
7namespace math {
8
9template <typename T_lp, typename T_lp_accum>
11 const T_lp& lp, const accumulator<T_lp_accum>& lp_accum) {
12 return lp + lp_accum.sum();
13}
14
15} // namespace math
16} // namespace stan
17#endif
T sum() const
Return the sum of the accumulated values.
Class to accumulate values and eventually return their sum.
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
return_type_t< T_lp, T_lp_accum > get_lp(const T_lp &lp, const accumulator< T_lp_accum > &lp_accum)
Definition get_lp.hpp:10
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...