ParallelProduct

ParallelProduct[expr,{i,imax}]

evaluates the product in parallel.

ParallelProduct[expr,{i,imin,imax}]

starts with i=i_(min).

ParallelProduct[expr,{i,imin,imax,di}]

uses steps di.

ParallelProduct[expr,{i,{i1,i2,}}]

uses successive values i_(1), i_(2), .

ParallelProduct[expr,{i,imin,imax},{j,jmin,jmax},]

evaluates the multiple product in parallel.

Details and Options

Examples

open allclose all

Basic Examples  (1)

Options  (7)

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:

Method  (2)

Calculations with vastly differing runtimes should be parallelized as finely as possible:

A large number of simple calculations should be distributed into as few batches as possible:

Possible Issues  (1)

Products with trivial terms may be slower in parallel than sequentially:

Splitting the computation into as few pieces as possible decreases the parallel overhead:

Wolfram Research (2008), ParallelProduct, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelProduct.html (updated 2010).

Text

Wolfram Research (2008), ParallelProduct, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelProduct.html (updated 2010).

BibTeX

@misc{reference.wolfram_2021_parallelproduct, author="Wolfram Research", title="{ParallelProduct}", year="2010", howpublished="\url{https://reference.wolfram.com/language/ref/ParallelProduct.html}", note=[Accessed: 28-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_parallelproduct, organization={Wolfram Research}, title={ParallelProduct}, year={2010}, url={https://reference.wolfram.com/language/ref/ParallelProduct.html}, note=[Accessed: 28-September-2021 ]}

CMS

Wolfram Language. 2008. "ParallelProduct." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2010. https://reference.wolfram.com/language/ref/ParallelProduct.html.

APA

Wolfram Language. (2008). ParallelProduct. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParallelProduct.html