(git:374b731)
Loading...
Searching...
No Matches
kahan_sum.F File Reference

Go to the source code of this file.

Data Types

interface  kahan_sum::accurate_sum
 
interface  kahan_sum::accurate_dot_product
 
interface  kahan_sum::accurate_dot_product_2
 

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]).