A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/ref/ParallelArray.html below:

ParallelArray—Wolfram Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

WolframConsulting.com

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 Examplesopen all close all Basic Examples  (4)

ParallelArray works like Array, but in parallel:

Generate a array:

Generate a array:

Use index origin 0 instead of 1:

Start with indices 0 and 4 instead of 1:

Used h instead of List for the result expression:

Options  (13) Method  (6)

Break the computation into the smallest possible subunits:

Break the computation into as many pieces as there are available kernels:

Break the computation into at most 2 evaluations per kernel for the entire job:

Break the computation into evaluations of at most 5 elements each:

The default option setting balances evaluation size and number of evaluations:

Calculations with vastly differing runtimes should be parallelized as finely as possible:

A large number of simple calculations should be distributed into as few batches as possible:

DistributedContexts  (5)

By default, definitions in the current context are distributed automatically:

Do not distribute any definitions of functions:

Distribute definitions for all symbols in all contexts appearing in a parallel computation:

Distribute only definitions in the given contexts:

Restore the value of the DistributedContexts option to its default:

ProgressReporting  (2)

Do not show a temporary progress report:

Use Method"FinestGrained" for the most accurate progress report:

Possible Issues  (2)

A function used that is not known on the parallel kernels may lead to sequential evaluation:

Define the function on all parallel kernels:

The function is now evaluated on the parallel kernels:

Definitions of functions in the current context are distributed automatically:

Definitions from contexts other than the default context are not distributed automatically:

Use DistributeDefinitions to distribute such definitions:

Alternatively, set the DistributedContexts option to include all contexts:

Wolfram Research (2008), ParallelArray, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelArray.html (updated 2021). Text

Wolfram Research (2008), ParallelArray, Wolfram Language function, https://reference.wolfram.com/language/ref/ParallelArray.html (updated 2021).

CMS

Wolfram Language. 2008. "ParallelArray." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2021. https://reference.wolfram.com/language/ref/ParallelArray.html.

APA

Wolfram Language. (2008). ParallelArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ParallelArray.html

BibTeX

@misc{reference.wolfram_2025_parallelarray, author="Wolfram Research", title="{ParallelArray}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/ParallelArray.html}", note=[Accessed: 17-August-2025]}

BibLaTeX

@online{reference.wolfram_2025_parallelarray, organization={Wolfram Research}, title={ParallelArray}, year={2021}, url={https://reference.wolfram.com/language/ref/ParallelArray.html}, note=[Accessed: 17-August-2025]}


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4