(git:0de0cc2)
kahan_sum.F File Reference

Go to the source code of this file.

Modules

module  kahan_sum
 sums arrays of real/complex numbers with much reduced round-off as compared to a naive implementation (or the one found in most compiler's SUM intrinsic) using an implementation of Kahan's algorithm for summing real numbers that can be used instead of the standard Fortran SUM(array[,mask]).