|
SOLUTIONS
|
BUILT-IN MATHEMATICA SYMBOL
ParallelMap
ParallelMap[f, expr]
applies f in parallel to each element on the first level in expr.
ParallelMap[f, expr, levelspec]
applies f in parallel to parts of expr specified by levelspec.
Details and OptionsDetails and Options
- ParallelMap is a parallel version of Map, which automatically distributes different applications of f among different kernels and processors.
- ParallelMap will give the same results as Map, except for side effects during the computation.
- ParallelMap uses the same level specifications as Map. Not all level specifications can be parallelized.
- Parallelize[Map[f, expr]] is equivalent to ParallelMap[f, expr].
- If an instance of ParallelMap cannot be parallelized, it is evaluated using Map.
- ParallelMap takes the same Method option as Parallelize.
- ParallelMap takes the same DistributedContexts option as ParallelTable.
ExamplesExamplesopen allclose all
Basic Examples (3)Basic Examples (3)
ParallelMap works like Map, but in parallel:
| In[1]:= |
| Out[1]= |
| In[2]:= |
| Out[2]= |
ParallelMap can work with any function:
| In[1]:= |
| Out[1]= | ![]() |
| In[2]:= |
| Out[2]= | ![]() |
Functions defined interactively can immediately be used in parallel:
| In[1]:= |
| In[2]:= |
| Out[2]= |
New in 7 | Last modified in 8
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »


