max_tasks
- The maximum number of tasks this module will spawn for a single operation.min_granularity
- The minimum number of elements each task will process.alli
- Returns true if the function holds for all elements in the vector.any
- Returns true if the function holds for any elements in the vector.map
- A parallel version of map.map_slices
- An internal helper to map a function over a large vector and return the intermediate results.mapi
- A parallel version of mapi.mapi_factory
- A parallel version of mapi.max_tasks
uint
The maximum number of tasks this module will spawn for a single operation.
min_granularity
uint
The minimum number of elements each task will process.
alli
fn alli<A: Copy Owned>(xs: &[A], f: ~fn(uint, &A) -> bool) -> bool
Returns true if the function holds for all elements in the vector.
any
fn any<A: Copy Owned>(xs: &[A], f: ~fn(&A) -> bool) -> bool
Returns true if the function holds for any elements in the vector.
map
fn map<A: Copy Owned, B: Copy Owned>(xs: &[A], f: ~fn(&A) -> B) -> ~[B]
A parallel version of map.
map_slices
fn map_slices<A: Copy Owned,
B: Copy Owned>(xs: &[A], f: &fn() -> ~fn(uint, v: &[A]) -> B) ->
~[B]
An internal helper to map a function over a large vector and return the intermediate results.
This is used to build most of the other parallel vector functions, like map or alli.
mapi
fn mapi<A: Copy Owned, B: Copy Owned>(xs: &[A], f: ~fn(uint, &A) -> B) -> ~[B]
A parallel version of mapi.
mapi_factory
fn mapi_factory<A: Copy Owned,
B: Copy Owned>(xs: &[A], f: &fn() -> ~fn(uint, A) -> B) ->
~[B]
A parallel version of mapi.
In this case, f is a function that creates functions to run over the inner elements. This is to skirt the need for copy constructors.