Stan Math Library  2.20.0
reverse mode automatic differentiation
dirichlet_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_DIRICHLET_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_DIRICHLET_LOG_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
8 
9 namespace stan {
10 namespace math {
11 
31 template <bool propto, typename T_prob, typename T_prior_size>
33  const T_prob& theta, const T_prior_size& alpha) {
34  return dirichlet_lpmf<propto, T_prob, T_prior_size>(theta, alpha);
35 }
36 
40 template <typename T_prob, typename T_prior_size>
42  const T_prob& theta, const T_prior_size& alpha) {
43  return dirichlet_lpmf<T_prob, T_prior_size>(theta, alpha);
44 }
45 
46 } // namespace math
47 } // namespace stan
48 #endif
return_type< T_prob, T_prior_size >::type dirichlet_log(const T_prob &theta, const T_prior_size &alpha)
The log of the Dirichlet density for the given theta and a vector of prior sample sizes...
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.