Skip to content

Commit

Permalink
Updating RcppArmadillo initialization
Browse files Browse the repository at this point in the history
This one-line change updates 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 8, 2022
1 parent 36f5ca6 commit 26e4455
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/HarDatacreationC.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ arma::mat HARDataCreationC(arma::vec vRealizedMeasure , arma::vec vPeriods, int
arma::mat HARMatCombine(arma::mat mA, arma::mat mB){
int iRowsA = mA.n_rows;
int iRowsB = mB.n_rows;
arma:: vec vFoo(2); vFoo << iRowsA << iRowsB <<endr;
arma:: vec vFoo({ iRowsA, iRowsB });
arma::mat mC((arma::min(vFoo)), (mA.n_cols+mB.n_cols));
if(iRowsA > iRowsB){
mA.shed_rows(0, iRowsA-iRowsB-1);
Expand Down

0 comments on commit 26e4455

Please sign in to comment.