BUILT-IN MATHEMATICA SYMBOL

# ParallelTable

ParallelTable[expr, {imax}]
generates in parallel a list of copies of expr.

ParallelTable[expr, {i, imax}]
generates in parallel a list of the values of expr when i runs from 1 to .

ParallelTable[expr, {i, imin, imax}]
starts with .

ParallelTable[expr, {i, imin, imax, di}]
uses steps di.

ParallelTable[expr, {i, {i1, i2, ...}}]
uses the successive values , , ....

ParallelTable[expr, {i, imin, imax}, {j, jmin, jmax}, ...]
gives a nested list. The list associated with i is outermost.

## Details and OptionsDetails and Options

• ParallelTable is a parallel version of Table which automatically distributes different evaluations of expr among different kernels and processors.
• ParallelTable will give the same results as Table, except for side effects during the computation.
• Parallelize[Table[expr, iter, ...]] is equivalent to ParallelTable[expr, iter, ...].
• If an instance of ParallelTable cannot be parallelized it is evaluated using Table.
• ParallelTable takes the same Method option as Parallelize.
• The DistributedContexts option for ParallelTable specifies which symbols appearing in expr have their definitions automatically distributed to all available kernels before the computation.
• The default value is with , which distributes definitions of all symbols in the current context, but does not distribute definitions of symbols from packages.

## ExamplesExamplesopen allclose all

### Basic Examples (5)Basic Examples (5)

ParallelTable works like Table, but in parallel:

 Out[1]=
 Out[2]=

A table of the first 10 squares:

 Out[1]=

A table with i running from 0 to 20 in steps of 2:

 Out[1]=

Make a 4×3 matrix:

 Out[1]=
 Out[2]//MatrixForm=

Plot a table:

 Out[1]=