mod_ssum Module

Sum up the first N elements of the real (kind=dp) array V(*) with a stepwidth of IV


Uses

    • mod_datatypes

Functions

public function ssum(n, v, iv)

License
Creative Commons License
Category
numerical-tools, KKRhost

S u m

u p

t h e

f i r s t

N

e l e m e n t s

o f

t h e

` r e a l

( k i n d = d p ) `

a r r a y

V ( * )

w i t h

a

s t e p w i d t h

o f

I V

Read more…

Arguments

Type IntentOptional Attributes Name
integer, intent(in) :: n

Number of elements to sum over

real(kind=dp), intent(in), dimension(*) :: v

Input vector

integer, intent(in) :: iv

Stepwidth

Return Value real(kind=dp)