lis_array_sum(3)

NAME
lis_array_sum - calculate the sum of the elements of the vector

SYNOPSIS
#include "lis.h" LIS_INT lis_array_sum(LIS_INT n, LIS_SCALAR x[], LIS_SCALAR *value);

DESCRIPTION
Calculate the sum of the elements of vector x.

n   The size of the vector

INPUT

x   The array that stores the vector

OUTPUT

value
    The sum of the vector elements

EXIT STATUS
The following exit values are returned:

0   The process is normally terminated

unspecified
    An error occurred

SEE ALSO
lis(3)

http://www.ssisc.org/lis/