aboutsummaryrefslogtreecommitdiff
path: root/src/gemma.cpp
diff options
context:
space:
mode:
authorArtyom Bologov2024-08-16 01:58:59 +0400
committerArtyom Bologov2024-08-16 02:03:28 +0400
commit2b85e9dc5111a8f51170c745c449697d2c77df1e (patch)
tree6edfde5a0c19851cdb0ecbe86f5926e99779801b /src/gemma.cpp
parentb6b8eb6acbf533109edd3004e5d81fdb42ec9102 (diff)
downloadpangemma-2b85e9dc5111a8f51170c745c449697d2c77df1e.tar.gz
gemma.cpp: Do eigendecomposition the same way as with LMM.
This way, one can export the eigen* data that matches the one used while doing LMM. Otherwise the exported eigenvectors are sliiiiightly off and break the computations depending on them in Mgamma.
Diffstat (limited to 'src/gemma.cpp')
-rw-r--r--src/gemma.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gemma.cpp b/src/gemma.cpp
index 2525075..4dfd7fd 100644
--- a/src/gemma.cpp
+++ b/src/gemma.cpp
@@ -2617,7 +2617,7 @@ void GEMMA::BatchRun(PARAM &cPar) {
time_start = clock();
if (cPar.a_mode == M_EIGEN) {
- cPar.trace_G = EigenDecomp_Zeroed(G, U, eval, 1);
+ cPar.trace_G = EigenDecomp_Zeroed(G, U, eval, 0);
} else {
cPar.trace_G = EigenDecomp_Zeroed(G, U, eval, 0);
}