Automatic Differentiation
 
Loading...
Searching...
No Matches
dirichlet_log.hpp
Go to the documentation of this file.
1#ifndef STAN_MATH_PRIM_PROB_DIRICHLET_LOG_HPP
2#define STAN_MATH_PRIM_PROB_DIRICHLET_LOG_HPP
3
7
8namespace stan {
9namespace math {
10
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);
34}
35
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);
43}
44
45} // namespace math
46} // namespace stan
47#endif
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 ...
Definition fvar.hpp:9