Skip to content

Commit a6064f2

Browse files
cosmetic edit
1 parent f13bce4 commit a6064f2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

selectiveInference/src/Rcpp-debias.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,13 @@ Rcpp::List solve_QP_wide(Rcpp::NumericMatrix X,
112112

113113
Rcpp::IntegerVector need_update(nfeature);
114114

115-
// Extract the diagonal
115+
Rcpp::NumericVector theta_old(nfeature);
116+
117+
// Extract the diagonal -- divide by ncase
118+
116119
Rcpp::NumericVector nndef_diag(nfeature);
117120
double *nndef_diag_p = nndef_diag.begin();
118121

119-
Rcpp::NumericVector theta_old(nfeature);
120-
121122
for (ifeature=0; ifeature<nfeature; ifeature++) {
122123
nndef_diag_p[ifeature] = 0;
123124
for (icase=0; icase<ncase; icase++) {

0 commit comments

Comments
 (0)