This package provides variants of sum
and cumsum
, called sum_kbn
and cumsum_kbn
respectively, using the Kahan-Babuska-Neumaier (KBN) algorithm for additional precision.
These functions are typically slower and less memory efficient than sum
and cumsum
.
These functions were formerly part of Julia’s Base library.