1 #ifndef STAN_MATH_PRIM_MAT_PROB_DIRICHLET_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_DIRICHLET_LOG_HPP 5 #include <boost/math/tools/promotion.hpp> 30 template <
bool propto,
31 typename T_prob,
typename T_prior_sample_size>
32 typename boost::math::tools::promote_args<T_prob, T_prior_sample_size>::type
34 const Eigen::Matrix<T_prior_sample_size, Eigen::Dynamic, 1>&
36 return dirichlet_lpmf<propto, T_prob, T_prior_sample_size>(theta, alpha);
42 template <
typename T_prob,
typename T_prior_sample_size>
44 typename boost::math::tools::promote_args<T_prob, T_prior_sample_size>::type
46 const Eigen::Matrix<T_prior_sample_size, Eigen::Dynamic, 1>&
48 return dirichlet_lpmf<T_prob, T_prior_sample_size>(theta, alpha);
boost::math::tools::promote_args< T_prob, T_prior_sample_size >::type dirichlet_log(const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &theta, const Eigen::Matrix< T_prior_sample_size, Eigen::Dynamic, 1 > &alpha)
The log of the Dirichlet density for the given theta and a vector of prior sample sizes...