Skip to content

Commit

Permalink
Updating RcppArmadillo initialization
Browse files Browse the repository at this point in the history
One simple change to update RcppArmadillo use from the now 
deprecated `<<` initialization to brace initialization allowed since C++11 and
long been the minimal standard with R too.  It would be great if you
could merge this, and release and updated package "in the next little
while" -- see the two prior emails I sent, and the transition log at
RcppCore/RcppArmadillo#391
  • Loading branch information
eddelbuettel authored Sep 10, 2022
1 parent 23ec708 commit 4c67cfa
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 4c67cfa

Please sign in to comment.