From 3b598f49e8f1241597bbc453b63d47f525f1f62b Mon Sep 17 00:00:00 2001 From: jkriege2 Date: Fri, 5 Jan 2024 00:01:11 +0100 Subject: [PATCH] FIXED: missing #include FIXED: jkqtpstatSum() and jkqtpstatSumSqr() did not work, as a non-existing function is called internally --- lib/jkqtmath/jkqtpstatbasics.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/jkqtmath/jkqtpstatbasics.h b/lib/jkqtmath/jkqtpstatbasics.h index 26d72eb3f4..45c1e1c704 100644 --- a/lib/jkqtmath/jkqtpstatbasics.h +++ b/lib/jkqtmath/jkqtpstatbasics.h @@ -38,6 +38,7 @@ #include "jkqtmath/jkqtplinalgtools.h" #include "jkqtmath/jkqtparraytools.h" #include "jkqtcommon/jkqtpdebuggingtools.h" +#include "jkqtcommon/jkqtpmathtools.h" /*! \brief calculates the average of a given data range \a first ... \a last @@ -352,7 +353,7 @@ inline double jkqtpstatModifiedSum(InputIt first, InputIt last, FF modifierFunct */ template inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr) { - return jkqtpstatSum(first, last, &jkqtp_identity, Noutput); + return jkqtpstatModifiedSum(first, last, &jkqtp_identity, Noutput); } /*! \brief calculates the sum of squares of a given data range \a first ... \a last @@ -374,7 +375,7 @@ inline double jkqtpstatSum(InputIt first, InputIt last, size_t* Noutput=nullptr) */ template inline double jkqtpstatSumSqr(InputIt first, InputIt last, size_t* Noutput=nullptr) { - return jkqtpstatSum(first, last, &jkqtp_sqr, Noutput); + return jkqtpstatModifiedSum(first, last, &jkqtp_sqr, Noutput); }