Stan Math Library  2.15.0
reverse mode automatic differentiation
ordered_logistic_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_ORDERED_LOGISTIC_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_ORDERED_LOGISTIC_LOG_HPP
3 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9  namespace math {
10 
37  template <bool propto, typename T_lambda, typename T_cut>
38  typename boost::math::tools::promote_args<T_lambda, T_cut>::type
39  ordered_logistic_log(int y, const T_lambda& lambda,
40  const Eigen::Matrix<T_cut, Eigen::Dynamic, 1>& c) {
41  return ordered_logistic_lpmf<propto, T_lambda, T_cut>(y, lambda, c);
42  }
43 
47  template <typename T_lambda, typename T_cut>
48  typename boost::math::tools::promote_args<T_lambda, T_cut>::type
49  ordered_logistic_log(int y, const T_lambda& lambda,
50  const Eigen::Matrix<T_cut, Eigen::Dynamic, 1>& c) {
51  return ordered_logistic_lpmf<T_lambda, T_cut>(y, lambda, c);
52  }
53 
54  }
55 }
56 #endif
boost::math::tools::promote_args< T_lambda, T_cut >::type ordered_logistic_log(int y, const T_lambda &lambda, const Eigen::Matrix< T_cut, Eigen::Dynamic, 1 > &c)
Returns the (natural) log probability of the specified integer outcome given the continuous location ...

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