Skip to content

Commit

Permalink
Merge pull request #3 from eddelbuettel/master
Browse files Browse the repository at this point in the history
Updating RcppArmadillo initialization
  • Loading branch information
bpfaff authored Sep 6, 2022
2 parents df96578 + e075814 commit 132039c
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/DCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ CPS* DCP::cps(CTRL& ctrl){
dpdv->z = cList.sslb(dpdv->z, Lambda, false);
ts = cList.smss(dpdv->s).max();
tz = cList.smss(dpdv->z).max();
ss << 0.0 << ts << tz << endr;
ss = { 0.0, ts, tz };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion src/DLP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ CPS* DLP::cps(CTRL& ctrl){
tz = cList.smss(dpdv2->z).max();
tt = -dpdv2->tau / lg;
tk = -dpdv2->kappa / lg;
ss << 0.0 << ts << tz << tt << tk << endr;
ss = { 0.0, ts, tz, tt, tk };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion src/DNL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ CPS* DNL::cps(CTRL& ctrl){
dpdv->z = cList.sslb(dpdv->z, Lambda, false);
ts = cList.smss(dpdv->s).max();
tz = cList.smss(dpdv->z).max();
ss << 0.0 << ts << tz << endr;
ss = { 0.0, ts, tz };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion src/DQP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ CPS* DQP::cps(CTRL& ctrl){

ts = cList.smss(dpdv->s).max();
tz = cList.smss(dpdv->z).max();
ss << 0.0 << ts << tz << endr;
ss = { 0.0, ts, tz };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion src/GPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ CPS* gpp(std::vector<mat> FList, std::vector<mat> gList, CONEC& cList, mat A, ma
dpdv->z = cList.sslb(dpdv->z, Lambda, false);
ts = cList.smss(dpdv->s).max();
tz = cList.smss(dpdv->z).max();
ss << 0.0 << ts << tz << endr;
ss = { 0.0, ts, tz };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down
2 changes: 1 addition & 1 deletion src/RPP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ CPS* rpp(mat x0, mat P, mat mrc, CTRL& ctrl){
dpdv->z = cList.sslb(dpdv->z, Lambda, false);
ts = cList.smss(dpdv->s).max();
tz = cList.smss(dpdv->z).max();
ss << 0.0 << ts << tz << endr;
ss = { 0.0, ts, tz };
tm = ss.max();
if(tm == 0.0){
step = 1.0;
Expand Down

0 comments on commit 132039c

Please sign in to comment.