ParallelSum
ParallelSum[expr,{i,imax}]
evaluates in parallel the sum .
ParallelSum[expr,{i,imin,imax}]
starts with .
ParallelSum[expr,{i,imin,imax,di}]
uses steps .
ParallelSum[expr,{i,{i1,i2,…}}]
uses successive values ,
, …..
ParallelSum[expr,{i,imin,imax},{j,jmin,jmax},…]
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.
Examples
open allclose allBasic Examples (1)
Options (7)
Method (2)
DistributedContexts (5)
By default, definitions in the current context are distributed automatically:
Do not distribute any definitions of functions:
Distribute definitions for all symbols in all contexts appearing in a parallel computation:
Distribute only definitions in the given contexts:
Restore the value of the DistributedContexts option to its default:
Possible Issues (2)
Sums with trivial terms may be slower in parallel than sequentially:
Splitting the computation into as few pieces as possible decreases the parallel overhead:
Sum may employ symbolic methods that are faster than an iterative addition of all terms:
Text
Wolfram Research (2008), ParallelSum, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelSum.html (updated 2010).
BibTeX
BibLaTeX
CMS
Wolfram Language. 2008. "ParallelSum." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/ParallelSum.html.
APA
Wolfram Language. (2008). ParallelSum. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParallelSum.html