Stan Math Library  2.15.0
reverse mode automatic differentiation
categorical_logit_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOGIT_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_CATEGORICAL_LOGIT_LOG_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
7 #include <vector>
8 
9 namespace stan {
10  namespace math {
11 
15  template <bool propto,
16  typename T_prob>
17  typename boost::math::tools::promote_args<T_prob>::type
19  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
20  beta) {
21  return categorical_logit_lpmf<propto, T_prob>(n, beta);
22  }
23 
27  template <typename T_prob>
28  inline
29  typename boost::math::tools::promote_args<T_prob>::type
31  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
32  beta) {
33  return categorical_logit_lpmf<T_prob>(n, beta);
34  }
35 
39  template <bool propto,
40  typename T_prob>
41  typename boost::math::tools::promote_args<T_prob>::type
42  categorical_logit_log(const std::vector<int>& ns,
43  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
44  beta) {
45  return categorical_logit_lpmf<propto, T_prob>(ns, beta);
46  }
47 
51  template <typename T_prob>
52  inline
53  typename boost::math::tools::promote_args<T_prob>::type
54  categorical_logit_log(const std::vector<int>& ns,
55  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>&
56  beta) {
57  return categorical_logit_lpmf<T_prob>(ns, beta);
58  }
59 
60  }
61 }
62 #endif
boost::math::tools::promote_args< T_prob >::type categorical_logit_log(int n, const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &beta)

     [ Stan Home Page ] © 2011–2016, Stan Development Team.