ParallelTable

ParallelTable[expr,{imax}]

generates in parallel a list of imax copies of expr.

ParallelTable[expr,{i,imax}]

generates in parallel a list of the values of expr when i runs from 1 to imax.

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

starts with i=imin.

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

uses steps di.

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

uses the successive values i1, i2, .

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

gives a nested list. The list associated with i is outermost.

Details and Options

Examples

open allclose all

Basic Examples  (5)

ParallelTable works like Table, but in parallel:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

A table of the first 10 squares:

In[1]:=
Click for copyable input
Out[1]=

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

In[1]:=
Click for copyable input
Out[1]=

Make a 4×3 matrix:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]//MatrixForm=

Plot a table:

In[1]:=
Click for copyable input
Out[1]=

Scope  (5)

Generalizations & Extensions  (1)

Options  (11)

Applications  (6)

Properties & Relations  (10)

Possible Issues  (3)

Neat Examples  (2)

See Also

Table  Parallelize  ParallelArray  ParallelTry  ParallelDo  ParallelSum

Introduced in 2008
(7.0)
| Updated in 2010
(8.0)