ScalES-PPM
Loading...
Searching...
No Matches
ppm_math_extensions::ddp_sum Interface Reference

Public Member Functions

pure complex(dp) function ddp_sum_dp_1d (a)
 compute double-double-precision corrected sum of 1d-array, should give better results than sum(a) for arrays a where cancellation occurs.
 
pure complex(dp) function ddp_sum_dp_2d (a)
 compute double-double-precision corrected sum of 2d-array
 
pure complex(dp) function ddp_sum_dp_3d (a)
 compute double-double-precision corrected sum of 3d-array
 

Member Function/Subroutine Documentation

◆ ddp_sum_dp_1d()

pure complex(dp) function ppm_math_extensions::ddp_sum::ddp_sum_dp_1d ( real(dp), dimension(:), intent(in) a)

compute double-double-precision corrected sum of 1d-array, should give better results than sum(a) for arrays a where cancellation occurs.

Parameters
aarray a(1)..a(n) to sum up
Returns
$\sum^n_{i=1} a_i$

◆ ddp_sum_dp_2d()

pure complex(dp) function ppm_math_extensions::ddp_sum::ddp_sum_dp_2d ( real(dp), dimension(:, :), intent(in) a)

compute double-double-precision corrected sum of 2d-array

See also
ddp_sum_dp_1d
Parameters
aarray a(1,1)..a(m,n) to sum up
Returns
$\sum^m_{i=1}\sum^n_{j=1} a_{i,j}$

◆ ddp_sum_dp_3d()

pure complex(dp) function ppm_math_extensions::ddp_sum::ddp_sum_dp_3d ( real(dp), dimension(:, :, :), intent(in) a)

compute double-double-precision corrected sum of 3d-array

See also
ddp_sum_dp_1d
Parameters
aarray a(1,1,1)..a(m,n,o) to sum up
Returns
$\sum^m_{i=1}\sum^n_{j=1}\sum^o_{l=1} a_{i,j,l}$

The documentation for this interface was generated from the following file:

Das diesem Bericht zugrundeliegende Vorhaben wurde mit Mitteln des Bundesministeriums für Bildung, und Forschung unter dem Förderkennzeichen 01IH08004E gefördert. Die Verantwortung für den Inhalt dieser Veröffentlichung liegt beim Autor.