From 40a9d521f4ecc9d4762a5f8c1953ec5f321755f0 Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Thu, 1 Oct 2020 09:57:34 +0100 Subject: These variables are introduced in DEBUG mode --- src/mathfunc.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/mathfunc.cpp') 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) { -- cgit 1.4.1