1 #ifndef STAN_MATH_PRIM_MAT_PROB_MULTINOMIAL_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_MULTINOMIAL_LOG_HPP 6 #include <boost/math/tools/promotion.hpp> 15 template <
bool propto,
17 typename boost::math::tools::promote_args<T_prob>::type
19 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
20 return multinomial_lpmf<propto, T_prob>(ns, theta);
26 template <
typename T_prob>
27 typename boost::math::tools::promote_args<T_prob>::type
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)