From aa53ff8aaab8a0221a18076bfa1f510c8b3dc61c Mon Sep 17 00:00:00 2001 From: daviddai80 Date: Wed, 11 Jul 2018 01:46:13 +0000 Subject: [PATCH] Update Rcpp_aux.hpp fix bugs 1.0 --- src/Rcpp_aux.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;