Mathematica 9 is now available
THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.
Mathematica > Systems Interfaces & Deployment > Parallel Computing > Data Parallelism >
Mathematica > Core Language > Tuning & Debugging > Parallel Computing > Data Parallelism >

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 n_1xn_2x... 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.
  • ParallelArray is a parallel version of Array, which automatically distributes different evaluations of expr among different kernels and processors.
  • ParallelArray will give the same results as Array, except for side effects during the computation.
Functions used must be distributed first:
New in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team