Macaulay2 » Documentation
Packages » Macaulay2Doc > The Macaulay2 language > parallel programming with threads and tasks > parallelApply
next | previous | forward | backward | up | index | toc

parallelApply -- apply a function to each element in parallel

Synopsis

Description

If the option Strategy is given the string "raw", then a separate task is created for each element of L. L is not split into chunks, allowableThreads is used unchanged, and the result has the same class as L. Normally the default strategy (Strategy => null) is more efficient.

See parallel programming with threads and tasks for more information and an important warning about thread safety.

Ways to use parallelApply :

For the programmer

The object parallelApply is a method function with options.