(git:c5411e0)
Loading...
Searching...
No Matches
kahan_sum::accurate_dot_product Interface Reference

Public Member Functions

pure real(kind=dp) function kahan_dot_product_d1 (array1, array2)
 computes the accurate sum of an array that is the element wise product of two input arrays.
 
pure real(kind=dp) function kahan_dot_product_s2 (array1, array2)
 computes the accurate sum of an array that is the element wise product of two input arrays.
 
pure real(kind=dp) function kahan_dot_product_d2 (array1, array2)
 computes the accurate sum of an array that is the element wise product of two input arrays.
 
pure complex(kind=dp) function kahan_dot_product_z2 (array1, array2)
 computes the accurate sum of an array that is the element wise product of two input arrays.
 
pure real(kind=dp) function kahan_dot_product_d3 (array1, array2)
 computes the accurate sum of an array that is the element wise product of two input arrays.
 
pure real(kind=dp) function kahan_dot_product_masked_d3 (array1, array2, mask, th)
 computes the accurate sum of an array that is the element wise product of two input arrays. a mask array determines which product array points to include in the sum
 

Detailed Description

Definition at line 52 of file kahan_sum.F.

Member Function/Subroutine Documentation

◆ kahan_dot_product_d1()

pure real(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_d1 ( real(kind=dp), dimension(:), intent(in)  array1,
real(kind=dp), dimension(:), intent(in)  array2 
)

computes the accurate sum of an array that is the element wise product of two input arrays.

Parameters
array1array of real numbers
array2another array of real numbers
Returns
dot product

Definition at line 140 of file kahan_sum.F.

◆ kahan_dot_product_s2()

pure real(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_s2 ( real(kind=sp), dimension(:, :), intent(in)  array1,
real(kind=sp), dimension(:, :), intent(in)  array2 
)

computes the accurate sum of an array that is the element wise product of two input arrays.

Parameters
array12-D array of real numbers
array2another 2-D array of real numbers
Returns
dot product

Definition at line 286 of file kahan_sum.F.

◆ kahan_dot_product_d2()

pure real(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_d2 ( real(kind=dp), dimension(:, :), intent(in)  array1,
real(kind=dp), dimension(:, :), intent(in)  array2 
)

computes the accurate sum of an array that is the element wise product of two input arrays.

Parameters
array12-D array of real numbers
array2another 2-D array of real numbers
Returns
dot product

Definition at line 352 of file kahan_sum.F.

◆ kahan_dot_product_z2()

pure complex(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_z2 ( complex(kind=dp), dimension(:, :), intent(in)  array1,
complex(kind=dp), dimension(:, :), intent(in)  array2 
)

computes the accurate sum of an array that is the element wise product of two input arrays.

Parameters
array12-D array of complex numbers
array2another 2-D array of complex numbers
Returns
dot product

Definition at line 457 of file kahan_sum.F.

◆ kahan_dot_product_d3()

pure real(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_d3 ( real(kind=dp), dimension(:, :, :), intent(in)  array1,
real(kind=dp), dimension(:, :, :), intent(in)  array2 
)

computes the accurate sum of an array that is the element wise product of two input arrays.

Parameters
array13-D array of real numbers
array2another 3-D array of real numbers
Returns
dot product

Definition at line 570 of file kahan_sum.F.

◆ kahan_dot_product_masked_d3()

pure real(kind=dp) function kahan_sum::accurate_dot_product::kahan_dot_product_masked_d3 ( real(kind=dp), dimension(:, :, :), intent(in), pointer  array1,
real(kind=dp), dimension(:, :, :), intent(in), pointer  array2,
real(kind=dp), dimension(:, :, :), intent(in), pointer  mask,
real(kind=dp), intent(in)  th 
)

computes the accurate sum of an array that is the element wise product of two input arrays. a mask array determines which product array points to include in the sum

Parameters
array1the first input array to compute the product array
array2the second input array to compute the product array
maskthe mask array
thscreening threshold: only array points where the value of mask is greater than th are included in the sum
Returns
the result of summation

Definition at line 604 of file kahan_sum.F.


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