Skip to content

Commit

Permalink
Merge pull request #143 from nlmixr2/change-setup-of-rxSolve
Browse files Browse the repository at this point in the history
Update pointers at the beginning of each exported fn
  • Loading branch information
mattfidler authored Oct 29, 2024
2 parents 8f7b4ac + 2beaeee commit 2c70390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/poped.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -460,7 +460,6 @@ static inline bool solveCached(NumericVector &theta, int &id) {
}

void popedSolveFidMat(arma::mat &matMT, NumericVector &theta, int id, int nrow, int nend) {
rxUpdateFn(_popedEglobal["curTrans"]);
// arma::vec ret(retD, nobs, false, true);
rx_solving_options_ind *ind = updateParamRetInd(theta, id);
rx_solving_options *op = getSolvingOptions(rx);
Expand Down Expand Up @@ -609,6 +608,7 @@ Rcpp::DataFrame popedSolveIdME2(NumericVector &theta,
NumericVector &mt, IntegerVector &ms,
int nend, int id, int totn) {
if (solveCached(theta, id)) return(as<Rcpp::DataFrame>(_popedE["s"]));
rxUpdateFn(_popedEglobal["curTrans"]);
NumericVector t(totn);
arma::vec f(totn);
arma::vec w(totn);
Expand Down

0 comments on commit 2c70390

Please sign in to comment.