Skip to content

Commit

Permalink
Translated more of UpdateGamma() (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
wleoncio committed Sep 16, 2024
1 parent 8df46e8 commit 58bf5d3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/UpdateGamma_cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ Rcpp::List UpdateGamma_cpp(
);
return out;
} else {
// post.gamma <- rep(list(rep(0, p)), S)
Rcpp::List post_gamma = Rcpp::List::create(S);
for (arma::uword g = 0; g < S; g++) {
post_gamma[g] = arma::zeros<arma::vec>(p);
}

if (MRF_G) {
for (arma::uword g = 0; g < S; g++) { // loop through subgroups
Expand Down

0 comments on commit 58bf5d3

Please sign in to comment.