aboutsummaryrefslogtreecommitdiff
path: root/src/mathfunc.cpp
diff options
context:
space:
mode:
authorPjotr Prins2020-10-01 09:57:34 +0100
committerPjotr Prins2020-10-01 09:57:34 +0100
commit40a9d521f4ecc9d4762a5f8c1953ec5f321755f0 (patch)
tree2215dc71fdf994ea30c5ec00be3e91f65ae58228 /src/mathfunc.cpp
parent85272f8d045e9ecb0a72ad5b2738eb135708bb01 (diff)
downloadpangemma-40a9d521f4ecc9d4762a5f8c1953ec5f321755f0.tar.gz
These variables are introduced in DEBUG mode
Diffstat (limited to 'src/mathfunc.cpp')
-rw-r--r--src/mathfunc.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mathfunc.cpp b/src/mathfunc.cpp
index aaa9431..e74a841 100644
--- a/src/mathfunc.cpp
+++ b/src/mathfunc.cpp
@@ -400,7 +400,11 @@ uint count_abs_small_values(const gsl_vector *v, double min) {
// and the ratio of max and min but one (min is expected to be zero).
bool isMatrixIllConditioned(const gsl_vector *eigenvalues, double max_ratio) {
auto t = abs_minmax(eigenvalues);
- // auto absmin = get<0>(t);
+
+#if !defined NDEBUG
+ auto absmin = get<0>(t);
+#endif
+
auto absmin1 = get<1>(t);
auto absmax = get<2>(t);
if (absmax/absmin1 > max_ratio) {