From 192ddde636ec91c2d8ee7986c2d36f2c1ef0662a Mon Sep 17 00:00:00 2001 From: Young Geun Kim Date: Tue, 17 Dec 2024 21:53:28 +0900 Subject: [PATCH] try gig in dl [skip ci] --- inst/include/bvhardraw.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/inst/include/bvhardraw.h b/inst/include/bvhardraw.h index 3ab2ae46..c436f886 100644 --- a/inst/include/bvhardraw.h +++ b/inst/include/bvhardraw.h @@ -806,12 +806,12 @@ inline void dl_mn_sparsity(Eigen::VectorXd& group_param, Eigen::VectorXi& grp_ve mn_scl[k++] = abs(coef_vec[j]) / (global_param * local_param[j]); } } - // group_param[i] = sim_gig(1, shape - mn_size, 2 * rate, 2 * mn_scl.sum(), rng)[0]; - group_param[i] = 1 / gamma_rand( - shape + mn_size, - 1 / (rate + mn_scl.sum()), - rng - ); + group_param[i] = sim_gig(1, shape - mn_size, 2 * rate, 2 * mn_scl.sum(), rng)[0]; + // group_param[i] = 1 / gamma_rand( + // shape + mn_size, + // 1 / (rate + mn_scl.sum()), + // rng + // ); } }