VRfSum


Routine

double VRfSum (const float x[], int N)

Purpose

Calculate the sum of elements in an array of floats

Description

This routine calculates the sum of the elements in an array of floats,
      N-1
  s = SUM x[i] .
      i=0

Parameters

<- double VRfSum
Sum of the elements
-> const float x[]
Input array (N elements)
-> int N
Number of elements in the array (may be zero)

Author / revision

P. Kabal / Revision 1.5 2003/05/09

See Also

VRfAdd


Main Index libtsp