(indexed-pmap indexed-pmap-fn num-iters)(indexed-pmap indexed-pmap-fn num-iters concat-fn)Given a function that receives a start-idx and group-len, efficiently run N that function over a set of integers return concatentated results. Uses ForkJoinPool's common pool for parallelism.
Given a function that receives a start-idx and group-len, efficiently run N that function over a set of integers return concatentated results. Uses ForkJoinPool's common pool for parallelism.
(launch-parallel-for num-iters parallel-for-fn)(launch-parallel-for num-iters parallel-for-fn concat-fn)Given a function that takes exactly 2 arguments, a start-index and a length, call this function exactly N times where N is ForkJoinPool/getCommonPoolParallelism. Indexes will be split as evenly as possible among the invocations. Uses ForkJoinPool/commonPool for parallelism.
Given a function that takes exactly 2 arguments, a start-index and a length, call this function exactly N times where N is ForkJoinPool/getCommonPoolParallelism. Indexes will be split as evenly as possible among the invocations. Uses ForkJoinPool/commonPool for parallelism.
(parallel-for idx-var num-iters & body)Like clojure.core.matrix.macros c-for except this expects index that run from 0 -> num-iters. Idx is named idx-var and body will be called for each idx in parallel. Uses forkjoinpool's common pool for parallelism
Like clojure.core.matrix.macros c-for except this expects index that run from 0 -> num-iters. Idx is named idx-var and body will be called for each idx in parallel. Uses forkjoinpool's common pool for parallelism
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs | 
| ← | Move to previous article | 
| → | Move to next article | 
| Ctrl+/ | Jump to the search field |