pairwise_sum Interface

public interface pairwise_sum

Contents


Module Procedures

private recursive function pairwise_sum_real_1d(array) result(the_result)

Unlike Kahan summation and similar methods this approach simply divides the set of numbers in half and sums each half separately. This is applied recursively until the local problem size drops below a certain size, at which point regular summation is applied

Read more…

Arguments

Type IntentOptional Attributes Name
real, intent(in), dimension(:) :: array

Return Value real