1#ifndef STAN_MATH_PRIM_PROB_CATEGORICAL_LOG_HPP
2#define STAN_MATH_PRIM_PROB_CATEGORICAL_LOG_HPP
15template <
bool propto,
typename T_n,
typename T_prob>
17 const T_prob& theta) {
18 return categorical_lpmf<propto>(ns, theta);
24template <
typename T_n,
typename T_prob>
26 const T_prob& theta) {
return_type_t< T_prob > categorical_log(const T_n &ns, const T_prob &theta)
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
return_type_t< T_prob > categorical_lpmf(int n, const T_prob &theta)
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...