Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating RcppArmadillo initialization #17

Merged
merged 1 commit into from
Oct 7, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Rcpp::List fitMRScpp( arma::mat X,
// sub-gorups label for each observation (used in dANOVA)
vec H(n_tot); H.fill(1);
// prior on parameter nu (used in dANOVA)
arma::vec nu_vec(1); nu_vec << 1 ;
arma::vec nu_vec({1});
vec a = 1.0 / (Omega.col(1) - Omega.col(0));
vec b = - Omega.col(0) % a;
// Initialize matrix of observations normalized to the p-dimensional hypercube
Expand Down
3 changes: 1 addition & 2 deletions src/recursion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,7 @@ Rcpp::List class_tree::compute_m_anova(INDEX_TYPE& I, int level, int d)
vec m_nus(n_grid + 1); m_nus.fill(log(0.0));
mat thetas(n_groups, n_grid); thetas.fill(0.5);
int n_grid_theta = 4;
vec theta0(n_grid_theta);
theta0 << 0.125 << 0.375 << 0.625 << 0.875 ;
vec theta0({ 0.125, 0.375, 0.625, 0.875});

vec data_0( sum(n_subgroups) );
vec data_1( sum(n_subgroups) );
Expand Down