ParallelArray

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

ParallelArray[f, {n1, n2, ...}]
generates in parallel an array of nested lists, with elements .

ParallelArray[f, {n1, n2, ...}, {r1, r2, ...}]
generates in parallel a list using the index origins (default ).

ParallelArray[f, dims, origin, h]
uses head h, rather than List, for each level of the array.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples (3)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 instead of :

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

Start with indices and instead of :

In[2]:=
Click for copyable input
Out[2]=
New in 7 | Last modified in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »