asum Interface

public interface asum

ASUM takes the sum of the absolute values.


Functions

public pure function dasum(n, x, incx)

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
real(kind=dp), intent(in) :: x(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=dp)

public pure function dzasum(n, x, incx)

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
complex(kind=dp), intent(in) :: x(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=dp)

public pure function sasum(n, x, incx)

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
real(kind=sp), intent(in) :: x(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=sp)

public pure function scasum(n, x, incx)

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
complex(kind=sp), intent(in) :: x(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=sp)

Module Procedures

public pure function stdlib_dasum(n, dx, incx)

DASUM takes the sum of the absolute values.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
real(kind=dp), intent(in) :: dx(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=dp)

public pure function stdlib_dzasum(n, zx, incx)

DZASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and returns a double precision result.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
complex(kind=dp), intent(in) :: zx(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=dp)

public pure function stdlib_sasum(n, sx, incx)

SASUM takes the sum of the absolute values. uses unrolled loops for increment equal to one.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
real(kind=sp), intent(in) :: sx(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=sp)

public pure function stdlib_scasum(n, cx, incx)

SCASUM takes the sum of the (|Re(.)| + |Im(.)|)'s of a complex vector and returns a single precision result.

Arguments

Type IntentOptional Attributes Name
integer(kind=ilp), intent(in) :: n
complex(kind=sp), intent(in) :: cx(*)
integer(kind=ilp), intent(in) :: incx

Return Value real(kind=sp)