Browse Source

Math: I forgot to finish this sentence back in 2016.

pull/547/head
Vladimír Vondruš 4 years ago
parent
commit
56a108c05b
  1. 3
      src/Magnum/Math/Algorithms/KahanSum.h

3
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] sum Initial value for the sum
@param[in,out] compensation Floating-point roundoff error compensation value. @param[in,out] compensation Floating-point roundoff error compensation value.
If non-@cpp nullptr @ce, value behind the pointer is used as initial 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 Calculates a sum of a large range of floating-point numbers with roundoff error
compensation. Compared to for example @ref std::accumulate() the algorithm compensation. Compared to for example @ref std::accumulate() the algorithm

Loading…
Cancel
Save