Module sum

Module sum 

Source

Functionsยง

kbk_sum
The kbk_sum() function performs a Kahan-Babushka-Klein summation. It does not sort its inputs. Currently, it is used by code that has presorted vectors.
kbk_sum_sort
The kbk_sum_sort() function performs a Kahan-Babushka-Klein summation. It has a sort on the inputs in addition to the normal algorithm.