1 #ifndef STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOGIT_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOGIT_LOG_HPP 7 #include <boost/math/tools/promotion.hpp> 16 template <
bool propto,
typename T_prob>
18 int n,
const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
beta) {
19 return categorical_logit_lpmf<propto, T_prob>(n,
beta);
25 template <
typename T_prob>
26 inline typename boost::math::tools::promote_args<T_prob>::type
28 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
beta) {
29 return categorical_logit_lpmf<T_prob>(n,
beta);
35 template <
bool propto,
typename T_prob>
37 const std::vector<int>& ns,
38 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
beta) {
39 return categorical_logit_lpmf<propto, T_prob>(ns,
beta);
45 template <
typename T_prob>
46 inline typename boost::math::tools::promote_args<T_prob>::type
48 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
beta) {
49 return categorical_logit_lpmf<T_prob>(ns,
beta);
boost::math::tools::promote_args< T_prob >::type categorical_logit_log(int n, const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &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.