1 #ifndef STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOG_HPP 2 #define STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOG_HPP 6 #include <boost/math/tools/promotion.hpp> 15 template <
bool propto,
typename T_prob>
16 typename boost::math::tools::promote_args<T_prob>::type
18 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
19 return categorical_lpmf<propto, T_prob>(n, theta);
25 template <
typename T_prob>
26 typename boost::math::tools::promote_args<T_prob>::type
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>
36 typename boost::math::tools::promote_args<T_prob>::type
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 typename boost::math::tools::promote_args<T_prob>::type
49 const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& theta) {
50 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)