CORRECT ROUNDING AND A HYBRID APPROACH TO EXACT FLOATING-POINT SUMMATION

被引:11
|
作者
Zhu, Yong-Kang [1 ]
Hayes, Wayne B. [1 ]
机构
[1] Univ Calif Irvine, Sch Informat & Comp Sci, Irvine, CA 92697 USA
来源
SIAM JOURNAL ON SCIENTIFIC COMPUTING | 2009年 / 31卷 / 04期
关键词
floating-point summation; rounding error; distillation; DOT PRODUCT; ACCURATE; SIGN; SUM; FAITHFUL;
D O I
10.1137/070710020
中图分类号
O29 [应用数学];
学科分类号
070104 ;
摘要
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 104, 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.
引用
收藏
页码:2981 / 3001
页数:21
相关论文
共 50 条