1#ifndef STAN_MATH_PRIM_PROB_DIRICHLET_LOG_HPP
2#define STAN_MATH_PRIM_PROB_DIRICHLET_LOG_HPP
30template <
bool propto,
typename T_prob,
typename T_prior_size>
32 const T_prior_size& alpha) {
33 return dirichlet_lpdf<propto, T_prob, T_prior_size>(theta, alpha);
39template <
typename T_prob,
typename T_prior_size>
41 const T_prior_size& alpha) {
42 return dirichlet_lpdf<T_prob, T_prior_size>(theta, alpha);
return_type_t< T_prob, T_prior_size > 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,...
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...