From 56a108c05bbffde9aaf9b8e90eefa1b4a73c5eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Fri, 21 Jan 2022 10:22:44 +0100 Subject: [PATCH] Math: I forgot to finish this sentence back in 2016. --- src/Magnum/Math/Algorithms/KahanSum.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Magnum/Math/Algorithms/KahanSum.h b/src/Magnum/Math/Algorithms/KahanSum.h index 81f6c21b8..ace35f8e0 100644 --- a/src/Magnum/Math/Algorithms/KahanSum.h +++ b/src/Magnum/Math/Algorithms/KahanSum.h @@ -40,7 +40,8 @@ namespace Magnum { namespace Math { namespace Algorithms { @param[in] sum Initial value for the sum @param[in,out] compensation Floating-point roundoff error compensation value. If non-@cpp nullptr @ce, value behind the pointer is used as initial - compensation value and the resulting value is + compensation value and the resulting compensation value is saved back + there. Calculates a sum of a large range of floating-point numbers with roundoff error compensation. Compared to for example @ref std::accumulate() the algorithm