-
Notifications
You must be signed in to change notification settings - Fork 71
map
myArray.map(depth, elementalFunction, arg1, arg2, ...)
Currently this API is invoked using map to get the JavaScript library version and mapOCL to get the optimized version. This is a temporary situation as we undergo some reworking of the API.
depth
the number of dimensions used to implicitly access this.
elementalFunction
described below
arg1
, arg2
, ... passed unchanged to elemental function
function (arg1, arg2, ...)
this
An element from the ParallelArray
arg1
, arg2
, ... Same as the optional arguments passed to map
The result of the function will be used as an element to be placed in the result at the same offset we found this
in the source array.
A freshly minted ParallelArray
Elements are the results of applying the elemental function to the elements in the original ParallelArray plus any optional arguments.
pa.map(function(){return this;})