Stan Math Library  2.20.0
reverse mode automatic differentiation
poisson_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_SCAL_PROB_POISSON_LOG_HPP
2 #define STAN_MATH_PRIM_SCAL_PROB_POISSON_LOG_HPP
3 
6 
7 namespace stan {
8 namespace math {
9 
13 template <bool propto, typename T_n, typename T_rate>
14 typename return_type<T_rate>::type poisson_log(const T_n& n,
15  const T_rate& lambda) {
16  return poisson_lpmf<propto, T_n, T_rate>(n, lambda);
17 }
18 
22 template <typename T_n, typename T_rate>
23 inline typename return_type<T_rate>::type poisson_log(const T_n& n,
24  const T_rate& lambda) {
25  return poisson_lpmf<T_n, T_rate>(n, lambda);
26 }
27 
28 } // namespace math
29 } // namespace stan
30 #endif
boost::math::tools::promote_args< double, typename scalar_type< T >::type, typename return_type< Types_pack... >::type >::type type
Definition: return_type.hpp:36
return_type< T_rate >::type poisson_log(const T_n &n, const T_rate &lambda)
Definition: poisson_log.hpp:14

     [ Stan Home Page ] © 2011–2018, Stan Development Team.