1#ifndef STAN_MATH_PRIM_PROB_MULTINOMIAL_LOGIT_LOG_HPP
2#define STAN_MATH_PRIM_PROB_MULTINOMIAL_LOGIT_LOG_HPP
15template <
bool propto,
typename T_beta,
16 require_eigen_col_vector_t<T_beta>* =
nullptr>
19 return multinomial_logit_lpmf<propto>(ns,
beta);
25template <
typename T_beta, require_eigen_col_vector_t<T_beta>* =
nullptr>
28 return multinomial_logit_lpmf<false>(ns,
beta);
return_type_t< T_beta > multinomial_logit_log(const std::vector< int > &ns, const T_beta &beta)
typename return_type< Ts... >::type return_type_t
Convenience type for the return type of the specified template parameters.
fvar< T > beta(const fvar< T > &x1, const fvar< T > &x2)
Return fvar with the beta function applied to the specified arguments and its gradient.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...