ParallelArray

ParallelArray[f,n]

generates in parallel a list of length n, with elements f[i], evaluated.

ParallelArray[f,{n1,n2,}]

generates in parallel an array of nested lists, with elements f[i1,i2,].

ParallelArray[f,{n1,n2,},{r1,r2,}]

generates in parallel a list using the index origins ri (default 1).

ParallelArray[f,dims,origin,h]

uses head h, rather than List, for each level of the array.

Details and Options

Examples

open allclose all

Basic Examples  (3)

ParallelArray works like Array, but in parallel:

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

Generate a array:

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

Generate a array:

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

Use index origin 0 instead of 1:

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

Start with indices 0 and 4 instead of 1:

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

Options  (11)

Possible Issues  (2)

See Also

Array  ParallelTable  Parallelize

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