Skip to contents

Calculate the sum of a vector of real numbers using multiple threads.

Usage

sum_with_threads_real(x, n)

Arguments

x

A vector of real numbers to sum over.

n

The number of threads used to compute this calculation (int).

Value

The sum of all elements of the input vector.