Function vector_sum_openmp (o2scl)

O2scl : Function List

template<class vec_t, class data_t>
data_t o2scl::vector_sum_openmp(size_t n, const vec_t &data)

Compute the sum of the first n elements of a vector (OpenMP version)

If n is zero, this will return 0 without throwing an exception.