I present two new methods for exactly summing a set of floating-point numbers, and then correctly rounding to the nearest floating-point number. Higher accuracy than simple summation (rounding after each addition) is important in many applications, such as finding the sample mean of data. Exact summation also guarantees identical results with parallel and serial implementations, since the exact sum is independent of order. The new methods use variations on the concept of a "superaccumulator" - a large fixed-point number that can exactly represent the sum of any reasonable number of floating-point values. One method uses a "small" superaccumulator with sixty-seven 64-bit chunks, each with 32-bit overlap with the next chunk, allowing carry propagation to be done infrequently. The small superaccumulator is used alone when summing a small number of terms. For big summations, a "large" superaccumulator is used as well. It consists of 4096 64-bit chunks, one for every possible combination of exponent bits and sign bit, plus counts of when each chunk needs to be transferred to the small superaccumulator. To add a term to the large superaccumulator, only a single chunk and its associated count need to be updated, which takes very few instructions if carefully implemented. On modern 64-bit processors, exactly summing a large array using this combination of large and small superaccumulators takes less than twice the time of simple, inexact, ordered summation, with a serial implementation. A parallel implementation using a small number of processor cores can be expected to perform exact summation of large arrays at a speed that reaches the limit imposed by memory bandwidth. Some common methods that attempt to improve accuracy without being exact may therefore be pointless, at least for large summations, since they are slower than computing the sum exactly.
A Fast Summation Method for Oscillatory Lattice Sums
Courant Institute of Mathematical Sciences, New York University(纽约大学柯朗数学科学研究所);National Institute of Standards and Technology(美国国家标准与技术研究院);Yale University(耶鲁大学)
Fast summation of Stokes potentials using a new kernel-splitting in the DMK framework
Flatiron Institute, Simons Foundation(西蒙斯基金会平顿研究所);Courant Institute of Mathematical Sciences, New York University(纽约大学柯朗数学科学研究所);Royal Institute of Technology(皇家理工学院)
Fast Ewald Summation with Prolates for Charged Systems in the NPT Ensemble
Center for Computational Mathematics, Flatiron Institute(西蒙斯基金会平顿研究所计算数学中心);School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院)
Accelerating Molecular Dynamics Simulations using Fast Ewald Summation with Prolates
Center for Computational Mathematics, Flatiron Institute(计算数学中心,Flatiron研究所);School of Mathematical Sciences, Shanghai Jiao Tong University(上海交通大学数学科学学院);Courant Institute of Mathematical Sciences, New York University(纽约大学柯朗数学科学研究所)
Bashkir State University(巴什基尔国立大学);Center for Micro and Nanoscale Dynamics of Dispersed Systems, Bashkir State University(巴什基尔国立大学分散系统微纳动力学中心);Fantalgo, LLC.(Fantalgo有限责任公司);Institute for Advanced Computer Studies(高级计算机研究所);Department of Computer Science(计算机科学系);University of Maryland, College Park(马里兰大学帕克分校)
NFFT meets Krylov methods: Fast matrix-vector products for the graph Laplacian of fully connected networks
Technische Universität Chemnitz, Faculty of Mathematics, Chair of Scientific Computing(技术大学化学学院,数学系,科学计算教研室);Technische Universität Chemnitz, Faculty of Mathematics, Chair of Applied Functional Analysis(技术大学化学学院,数学系,应用泛函分析教研室);Technische Universität Chemnitz, Faculty of Mathematics, Chair of Applied Analysis(技术大学化学学院,数学系,应用分析教研室)