aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPjotr Prins2017-10-11 10:44:17 +0000
committerPjotr Prins2017-10-13 15:27:24 +0000
commit7d252d9ae8cdcbb6f5bd58c1ba1a97589defe2a0 (patch)
tree108151d60ec2e492e14a01061f1551161da993e3
parenta06ac9884b4d4436e8821216cdba8ac83a8dcc07 (diff)
downloadpangemma-7d252d9ae8cdcbb6f5bd58c1ba1a97589defe2a0.tar.gz
debug message: minor change
-rw-r--r--src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/debug.cpp b/src/debug.cpp
index b7a69f1..0d3c9cc 100644
--- a/src/debug.cpp
+++ b/src/debug.cpp
@@ -34,11 +34,11 @@ void do_validate_K(const gsl_matrix *K, bool do_check, bool strict, const char *
warning_at_msg(__file,__line,"K is ill conditioned!");
if (!isMatrixSymmetric(K))
fail_at_msg(strict,__file,__line,"K is not symmetric!" );
- bool negative_values = has_negative_values_but_one(eigenvalues);
+ const bool negative_values = has_negative_values_but_one(eigenvalues);
if (negative_values) {
warning_at_msg(__file,__line,"K has more than one negative eigenvalues!");
}
- if (count_small>0 && negative_values && !isMatrixPositiveDefinite(K))
+ if (count_small>1 && negative_values && !isMatrixPositiveDefinite(K))
fail_at_msg(strict,__file,__line,"K is not positive definite!");
gsl_vector_free(eigenvalues);
}