Stan Math Library  2.15.0
reverse mode automatic differentiation
lkj_corr_cholesky_log.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_CHOLESKY_LOG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_CHOLESKY_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_covar, typename T_shape>
16  typename boost::math::tools::promote_args<T_covar, T_shape>::type
17  lkj_corr_cholesky_log(const Eigen::Matrix
18  <T_covar, Eigen::Dynamic, Eigen::Dynamic>& L,
19  const T_shape& eta) {
20  return lkj_corr_cholesky_lpdf<propto, T_covar, T_shape>(L, eta);
21  }
22 
26  template <typename T_covar, typename T_shape>
27  inline
28  typename boost::math::tools::promote_args<T_covar, T_shape>::type
29  lkj_corr_cholesky_log(const Eigen::Matrix
30  <T_covar, Eigen::Dynamic, Eigen::Dynamic>& L,
31  const T_shape& eta) {
32  return lkj_corr_cholesky_lpdf<T_covar, T_shape>(L, eta);
33  }
34 
35  }
36 }
37 #endif
boost::math::tools::promote_args< T_covar, T_shape >::type lkj_corr_cholesky_log(const Eigen::Matrix< T_covar, Eigen::Dynamic, Eigen::Dynamic > &L, const T_shape &eta)

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