1#ifndef STAN_MATH_PRIM_PROB_CATEGORICAL_LOGIT_LOG_HPP
2#define STAN_MATH_PRIM_PROB_CATEGORICAL_LOGIT_LOG_HPP
15template <
bool propto,
typename T_n,
typename T_prob>
18 return categorical_logit_lpmf<propto>(ns,
beta);
24template <
typename T_n,
typename T_prob>
return_type_t< T_prob > categorical_logit_log(const T_n &ns, const T_prob &beta)
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_logit_lpmf(int n, const T_prob &beta)
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 ...