Link Search Menu Expand Document

Parallel Arithmetic

To sum the elements of a range in parallel:

sum(execution::parallel_policy, x)

Or let scistats infer if it is worth doing it in parallel:

sum(x)
Function Description
sum summation
prod product