about summary refs log tree commit diff
path: root/src/debug.cpp
diff options
context:
space:
mode:
authorPjotr Prins2017-12-06 16:36:11 +0000
committerPjotr Prins2017-12-06 16:36:11 +0000
commit29df576cca8052e4aa9142ce1bb0ab490b864976 (patch)
treef29ec0245a2cd58f9c598d8b3dae53144cc11887 /src/debug.cpp
parent996f70910c675e249fac753273b11555b1b7a4e3 (diff)
downloadpangemma-29df576cca8052e4aa9142ce1bb0ab490b864976.tar.gz
Some cleanup on matrix checking
Diffstat (limited to 'src/debug.cpp')
-rw-r--r--src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index cb98f27..4e57e3e 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -134,14 +134,14 @@ void do_validate_K(const gsl_matrix *K, const char *__pretty_function, const cha
   if (is_check_mode()) {
     // debug_msg("Validating K");
     auto eigenvalues = getEigenValues(K);
-    const uint count_small = count_small_values(eigenvalues,EIGEN_MINVALUE);
+    const uint count_small = count_abs_small_values(eigenvalues,EIGEN_MINVALUE);
     if (count_small>1) {
       std::string msg = "K has ";
       msg += std::to_string(count_small);
       msg += " eigenvalues close to zero";
       warning_at_msg(__file,__line,msg);
     }
-    if (!isMatrixIllConditioned(eigenvalues))
+    if (isMatrixIllConditioned(eigenvalues))
       warning_at_msg(__file,__line,"K is ill conditioned!");
     if (!isMatrixSymmetric(K))
       warnfail_at_msg(is_strict_mode(),__pretty_function,__file,__line,"K is not symmetric!" );