1#ifndef STAN_MATH_PRIM_PROB_LKJ_CORR_RNG_HPP
2#define STAN_MATH_PRIM_PROB_LKJ_CORR_RNG_HPP
26inline Eigen::MatrixXd
lkj_corr_rng(
size_t K,
double eta, RNG& rng) {
27 static constexpr const char* function =
"lkj_corr_rng";
Eigen::MatrixXd lkj_corr_rng(size_t K, double eta, RNG &rng)
Return a random correlation matrix (symmetric, positive definite, unit diagonal) of the specified dim...
Eigen::Matrix< value_type_t< EigMat >, EigMat::RowsAtCompileTime, EigMat::RowsAtCompileTime > multiply_lower_tri_self_transpose(const EigMat &m)
Eigen::MatrixXd lkj_corr_cholesky_rng(size_t K, double eta, RNG &rng)
void check_positive(const char *function, const char *name, const T_y &y)
Check if y is positive.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...