1 #ifndef STAN_MATH_PRIM_MAT_PROB_MULTINOMIAL_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_MULTINOMIAL_LOG_HPP 7 #include <boost/math/tools/promotion.hpp> 16 template <
bool propto,
typename T_prob>
18 const std::vector<int>& ns,
19 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
20 return multinomial_lpmf<propto, T_prob>(ns, theta);
26 template <
typename T_prob>
28 const std::vector<int>& ns,
29 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
30 return multinomial_lpmf<false>(ns, theta);
boost::math::tools::promote_args< T_prob >::type multinomial_log(const std::vector< int > &ns, const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &theta)