Stan Math Library  2.20.0
reverse mode automatic differentiation
lkj_corr_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_LOG_HPP
3 
7 #include <boost/math/tools/promotion.hpp>
8 
9 namespace stan {
10 namespace math {
11 
15 template <bool propto, typename T_y, typename T_shape>
16 typename boost::math::tools::promote_args<T_y, T_shape>::type lkj_corr_log(
17  const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
18  const T_shape& eta) {
19  return lkj_corr_lpdf<propto, T_y, T_shape>(y, eta);
20 }
21 
25 template <typename T_y, typename T_shape>
26 inline typename boost::math::tools::promote_args<T_y, T_shape>::type
27 lkj_corr_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
28  const T_shape& eta) {
29  return lkj_corr_lpdf<T_y, T_shape>(y, eta);
30 }
31 
32 } // namespace math
33 } // namespace stan
34 #endif
boost::math::tools::promote_args< T_y, T_shape >::type lkj_corr_log(const Eigen::Matrix< T_y, Eigen::Dynamic, Eigen::Dynamic > &y, const T_shape &eta)

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