evaluates in parallel the sum .
starts with .
uses steps .
uses successive values , , …..
evaluates in parallel the multiple sum .
Details and Options
- ParallelSum is a parallel version of Sum, which automatically distributes partial summations among different kernels and processors.
- ParallelSum will give the same results as Sum, except for side effects during the computation.
- Parallelize[Sum[expr,iter,…]] is equivalent to ParallelSum[expr,iter,…].
- If an instance of ParallelSum cannot be parallelized it is evaluated using Sum.
- ParallelSum takes the same Method option as Parallelize.
- ParallelSum takes the same DistributedContexts option as ParallelTable.
Examplesopen allclose all
Basic Examples (1)
Restore the value of the DistributedContexts option to its default:
Possible Issues (2)
Sum may employ symbolic methods that are faster than an iterative addition of all terms: