1 #ifndef STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_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>& theta) {
19 return categorical_lpmf<propto, T_prob>(n, theta);
25 template <
typename T_prob>
28 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
29 return categorical_lpmf<T_prob>(n, theta);
35 template <
bool propto,
typename T_prob>
37 const std::vector<int>& ns,
38 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
39 return categorical_lpmf<propto, T_prob>(ns, theta);
45 template <
typename T_prob>
47 const std::vector<int>& ns,
48 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
49 return categorical_lpmf<false>(ns, theta);
Primary template class for the metaprogram to compute the index type of a container.
boost::math::tools::promote_args< T_prob >::type categorical_log(int n, const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &theta)