1 #ifndef __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__POISSON_HPP__
2 #define __STAN__PROB__DISTRIBUTIONS__UNIVARIATE__DISCRETE__POISSON_HPP__
14 template <
bool propto,
17 typename boost::math::tools::promote_args<T_rate>::type
21 static const char*
function =
"stan::prob::poisson_log(%1%)";
25 using boost::math::tools::promote_args;
27 typename promote_args<T_rate>::type lp;
31 "Rate parameter", &lp, Policy()))
34 "Rate parameter", &lp, Policy()))
38 return n == 0 ? 0 : LOG_ZERO;
52 template <
bool propto,
55 typename boost::math::tools::promote_args<T_rate>::type
61 template <
typename T_rate,
64 typename boost::math::tools::promote_args<T_rate>::type
67 return poisson_log<false>(n,lambda,Policy());
71 template <
typename T_rate>
73 typename boost::math::tools::promote_args<T_rate>::type