Skip to content

Commit 71b6586

Browse files
BF: segfault seems fixed -- ensured all functions have some order of ncase, nfeature
1 parent a8d50a6 commit 71b6586

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

selectiveInference/src/Rcpp-debias.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,8 +160,8 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
160160
(double *) X.begin(),
161161
(double *) linear_func.begin(),
162162
(int *) need_update.begin(),
163-
nfeature,
164163
ncase,
164+
nfeature,
165165
(double *) bound.begin(),
166166
ridge_term,
167167
kkt_tol);
@@ -175,8 +175,8 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
175175
(double *) X.begin(),
176176
(double *) linear_func.begin(),
177177
(int *) need_update.begin(),
178-
nfeature,
179-
ncase);
178+
ncase,
179+
nfeature);
180180

181181
return(Rcpp::List::create(Rcpp::Named("soln") = theta,
182182
Rcpp::Named("gradient") = gradient,

0 commit comments

Comments
 (0)