Stan Math Library  2.15.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 
6 #include <boost/math/tools/promotion.hpp>
7 
8 namespace stan {
9  namespace math {
10 
14  template <bool propto,
15  typename T_y, typename T_shape>
16  typename boost::math::tools::promote_args<T_y, T_shape>::type
17  lkj_corr_log(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
27  typename boost::math::tools::promote_args<T_y, T_shape>::type
28  lkj_corr_log(const Eigen::Matrix<T_y, Eigen::Dynamic, Eigen::Dynamic>& y,
29  const T_shape& eta) {
30  return lkj_corr_lpdf<T_y, T_shape>(y, eta);
31  }
32 
33  }
34 }
35 #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–2016, Stan Development Team.