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

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