Correct Rounding and a Hybrid Approach to Exact Floating-Point Summation
Authors:
- Yong-Kang ZhuYZYong-Kang Zhu
- Wayne B. HayesWHWayne B. Hayes
- 1 January 2009
- journal article
- Published by Society for Industrial & Applied Mathematics (SIAM) in SIAM Journal on Scientific Computing
- Vol. 31 (4) , 2981-3001
Abstract
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.
Keywords
This publication has 11 references indexed in Scilit:
- Accurate Floating-Point Summation Part II: Sign, K-Fold Faithful and Rounding to NearestSIAM Journal on Scientific Computing, 2009
- Accurate Floating-Point Summation Part I: Faithful RoundingSIAM Journal on Scientific Computing, 2008
- Line Segment Intersection TestingComputing, 2005
- A New Distillation Algorithm for Floating-Point SummationSIAM Journal on Scientific Computing, 2005
- Accurate Sum and Dot ProductSIAM Journal on Scientific Computing, 2005
- Computing the Sign of a Dot Product SumLecture Notes in Computer Science, 2004
- Accurate and Efficient Floating Point SummationSIAM Journal on Scientific Computing, 2004
- Exact computation of the sign of a finite sumApplied Mathematics and Computation, 1999
- A Distillation Algorithm for Floating-Point SummationSIAM Journal on Scientific Computing, 1999
- A floating-point technique for extending the available precisionNumerische Mathematik, 1971