From 2beaeee9c8210ec293db2cc4adca68aaa0a2bbfe Mon Sep 17 00:00:00 2001 From: Matthew Fidler Date: Thu, 24 Oct 2024 12:22:03 -0500 Subject: [PATCH] Update pointers at the beginning of each exported fn --- src/poped.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/poped.cpp b/src/poped.cpp index 200ec59..96c6c54 100644 --- a/src/poped.cpp +++ b/src/poped.cpp @@ -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); @@ -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(_popedE["s"])); + rxUpdateFn(_popedEglobal["curTrans"]); NumericVector t(totn); arma::vec f(totn); arma::vec w(totn);