Skip to content

Commit

Permalink
Merge pull request #5 from eddelbuettel/patch-1
Browse files Browse the repository at this point in the history
Thanks, Dirk.

I will get this on CRAN for you.
  • Loading branch information
emilsjoerup authored Jan 8, 2023
2 parents 36f5ca6 + 26e4455 commit 61f749d
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 61f749d

Please sign in to comment.