期刊
SIAM JOURNAL ON SCIENTIFIC COMPUTING
卷 42, 期 3, 页码 A1541-A1557出版社
SIAM PUBLICATIONS
DOI: 10.1137/19M1257780
关键词
summation; recursive summation; compensated summation; blocked summation; rounding error analysis; floating-point arithmetic; numerical linear algebra
资金
- Engineering and Physical Sciences Research Council [EP/P020720/1]
- MathWorks
- Royal Society
- EPSRC [EP/P020720/1] Funding Source: UKRI
The need to sum floating-point numbers is ubiquitous in scientific computing. Standard recursive summation of n summands, often implemented in a blocked form, has a backward error bound proportional to nu, where u is the unit roundoff. With the growing interest in low precision floating-point arithmetic and ever increasing n in applications, computed sums are more likely to have insufficient accuracy. We propose a class of summation algorithms called FABsum (for fast and accurate block summation) that applies a fast summation algorithm (such as recursive summation) blockwise and then sums the partial sums using an accurate summation algorithm (such as compensated summation, or recursive summation in higher precision). We give a rounding error analysis to show that FABsum with a fixed block size b has a backward error bound (b + 1)u + O(u(2)), which is independent of n to first order. Our computational experiments show that with a suitable choice of b (independent of n) FABsum can deliver substantially more accurate results than blocked recursive summation, with only a modest drop in performance. FABsum is especially attractive for low precisions, where it can provide correct digits for much larger n than recursive summation.
作者
我是这篇论文的作者
点击您的名字以认领此论文并将其添加到您的个人资料中。
推荐
暂无数据