Stan Math Library  2.20.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 
7 #include <boost/math/tools/promotion.hpp>
8 #include <vector>
9 
10 namespace stan {
11 namespace math {
12 
16 template <bool propto, typename T_prob>
17 typename boost::math::tools::promote_args<T_prob>::type categorical_logit_log(
18  int n, const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& beta) {
19  return categorical_logit_lpmf<propto, T_prob>(n, beta);
20 }
21 
25 template <typename T_prob>
26 inline typename boost::math::tools::promote_args<T_prob>::type
28  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& beta) {
29  return categorical_logit_lpmf<T_prob>(n, beta);
30 }
31 
35 template <bool propto, typename T_prob>
36 typename boost::math::tools::promote_args<T_prob>::type categorical_logit_log(
37  const std::vector<int>& ns,
38  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& beta) {
39  return categorical_logit_lpmf<propto, T_prob>(ns, beta);
40 }
41 
45 template <typename T_prob>
46 inline typename boost::math::tools::promote_args<T_prob>::type
47 categorical_logit_log(const std::vector<int>& ns,
48  const Eigen::Matrix<T_prob, Eigen::Dynamic, 1>& beta) {
49  return categorical_logit_lpmf<T_prob>(ns, beta);
50 }
51 
52 } // namespace math
53 } // namespace stan
54 #endif
boost::math::tools::promote_args< T_prob >::type categorical_logit_log(int n, const Eigen::Matrix< T_prob, Eigen::Dynamic, 1 > &beta)
fvar< T > beta(const fvar< T > &x1, const fvar< T > &x2)
Return fvar with the beta function applied to the specified arguments and its gradient.
Definition: beta.hpp:51

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