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 Copyright (C) 1995 / Revision 1.2 1995/02/09

See Also

VRfAdd, VRfSubt


Main Index libtsp