Stan Math Library  2.8.0
reverse mode automatic differentiation
 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Macros Groups
lkj_corr_rng.hpp
Go to the documentation of this file.
1 #ifndef STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_RNG_HPP
2 #define STAN_MATH_PRIM_MAT_PROB_LKJ_CORR_RNG_HPP
3 
48 
49 namespace stan {
50  namespace math {
51 
52  template <class RNG>
53  inline Eigen::MatrixXd
54  lkj_corr_rng(const size_t K,
55  const double eta,
56  RNG& rng) {
57  static const char* function("stan::math::lkj_corr_rng");
58 
60 
61  check_positive(function, "Shape parameter", eta);
62 
65  rng));
66  }
67 
68  }
69 }
70 #endif
Eigen::MatrixXd lkj_corr_rng(const size_t K, const double eta, RNG &rng)
Eigen::Matrix< fvar< T >, R, R > multiply_lower_tri_self_transpose(const Eigen::Matrix< fvar< T >, R, C > &m)
bool check_positive(const char *function, const char *name, const T_y &y)
Return true if y is positive.
Eigen::MatrixXd lkj_corr_cholesky_rng(const size_t K, const double eta, RNG &rng)

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