Correct Rounding and a Hybrid Approach to Exact Floating-Point Summation
Correct Rounding and a Hybrid Approach to Exact Floating-Point Summation
复制标题
正确的舍入和精确浮点求和的混合方法
DOI:
--
复制
发表时间:
2009
影响因子:
3.1
通讯作者:
W. Hayes
中科院分区:
文献类型:
--
作者:
Yong;W. Hayes
We present two algorithms for computing correctly rounded sums of arrays of floating-point numbers. First, iFastSum improves upon our previous FastSum by requiring no additional space beyond the original array, which is destroyed. It runs about 20% faster than FastSum in the general case and two times faster when extremely ill-conditioned data are used. The second algorithm is HybridSum, which combines three summation ideas together: splitting the mantissa, radix sorting, and using iFastSum. The result is that when the number of summands is greater than about $10^4$, for a given $n$ its running time is almost a constant, independent of the condition number. It runs almost as fast as iFastSum in the general case and much faster than iFastSum when ill-conditioned data are used. HybridSum requires only one pass through the input array and uses constant storage, and it is thus suitable for exact summation as an “online” algorithm. Neither algorithm requires extra precision accumulators, and both work in any base. Their accuracy is guaranteed independent of the condition number and the number of summands.