C++ Mathematical Expression Toolkit (ExprTk) release
Loading...
Searching...
No Matches
exprtk::rtl::vecops::details Namespace Reference

Functions

template<typename T>
void kahan_sum (T &sum, T &error, const T v)

Function Documentation

◆ kahan_sum()

template<typename T>
void exprtk::rtl::vecops::details::kahan_sum ( T & sum,
T & error,
const T v )
inline

Definition at line 44891 of file exprtk.hpp.

44892 {
44893 const T x = v - error;
44894 const T y = sum + x;
44895 error = (y - sum) - x;
44896 sum = y;
44897 }

Referenced by exprtk::rtl::vecops::dotk< T >::operator()(), and exprtk::rtl::vecops::sumk< T >::operator()().

Here is the caller graph for this function: