![]() |
(git:d18deda)
|
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]). More...
Data Types | |
interface | accurate_dot_product |
interface | accurate_dot_product_2 |
interface | accurate_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]).
see also http://en.wikipedia.org/wiki/Kahan_summation_algorithm
the standard intrinsic sum can be 'replaced' using the following use statement
USE kahan_sum, ONLY: sum => kahan_sum