Skip to content

Commit

Permalink
Updating RcppArmadillo initialization
Browse files Browse the repository at this point in the history
These three one-line change update RcppArmadillo 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 13, 2022
1 parent d3b2013 commit 47aea32
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions SSpace.h
Original file line number Diff line number Diff line change
Expand Up @@ -1211,11 +1211,11 @@ void outputTable(vec v, vector<string>& table){
uvec ind;
if (n4 < 168){
if (n < 30)
ind << 0 << 1 << 2 << 3 << endr;
ind = { 0, 1, 2, 3 };
else
ind << 0 << 3 << 7 << 11 << endr;
ind = { 0, 3, 7, 11 };
} else {
ind << 0 << 3 << 7 << 11 << 23 << 167 << endr;
ind = { 0, 3, 7, 11, 23, 167 };
}
int ncoef = ind.max() + 1;
vec acfCoef1, acfCoef2;
Expand Down

0 comments on commit 47aea32

Please sign in to comment.