stdlib_dot_product_kahan Interface

public interface stdlib_dot_product_kahan

Summary

dot_product of rank 1 arrays. (Specification)

Description

compute the dot_product of rank 1 arrays. The implementation follows a chunked approach combined with a kahan kernel for optimizing performance and increasing accuracy. Supported data types include real and complex.


Functions

private pure module function stdlib_dot_product_kahan_cdp(a, b) result(p)

Arguments

Type IntentOptional Attributes Name
complex(kind=dp), intent(in) :: a(:)
complex(kind=dp), intent(in) :: b(:)

Return Value complex(kind=dp)

private pure module function stdlib_dot_product_kahan_csp(a, b) result(p)

Arguments

Type IntentOptional Attributes Name
complex(kind=sp), intent(in) :: a(:)
complex(kind=sp), intent(in) :: b(:)

Return Value complex(kind=sp)

private pure module function stdlib_dot_product_kahan_dp(a, b) result(p)

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: a(:)
real(kind=dp), intent(in) :: b(:)

Return Value real(kind=dp)

private pure module function stdlib_dot_product_kahan_sp(a, b) result(p)

Arguments

Type IntentOptional Attributes Name
real(kind=sp), intent(in) :: a(:)
real(kind=sp), intent(in) :: b(:)

Return Value real(kind=sp)