Stan Math Library  2.20.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 
7 #include <boost/math/tools/promotion.hpp>
8 
9 namespace stan {
10 namespace math {
11 
15 template <bool propto, typename T_covar, typename T_shape>
16 typename boost::math::tools::promote_args<T_covar, T_shape>::type
18  const Eigen::Matrix<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 typename boost::math::tools::promote_args<T_covar, T_shape>::type
29  const Eigen::Matrix<T_covar, Eigen::Dynamic, Eigen::Dynamic>& L,
30  const T_shape& eta) {
31  return lkj_corr_cholesky_lpdf<T_covar, T_shape>(L, eta);
32 }
33 
34 } // namespace math
35 } // namespace stan
36 #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–2018, Stan Development Team.