diff --git a/src/Rcpp_aux.hpp b/src/Rcpp_aux.hpp index ee057c8..8ad32a3 100755 --- a/src/Rcpp_aux.hpp +++ b/src/Rcpp_aux.hpp @@ -262,7 +262,7 @@ void preprocess_summary(SEXP Xs, SEXP SS, double lbPval, int& type, int& N, int int* p = INTEGER(Xs); Mat mat_X(p, N, P, false); summary = combine_summary_X(mat_X, xsnps, SS, lbPval); - bool create_new_matrix = false; + bool create_new_matrix = true; if(mat_X.n_cols < P){ create_new_matrix = true; P = mat_X.n_cols; @@ -273,7 +273,7 @@ void preprocess_summary(SEXP Xs, SEXP SS, double lbPval, int& type, int& N, int double* p = REAL(Xs); Mat mat_X(p, N, P,false); summary = combine_summary_X(mat_X, xsnps, SS, lbPval); - bool create_new_matrix = false; + bool create_new_matrix = true; if(mat_X.n_cols < P){ create_new_matrix = true; P = mat_X.n_cols;