Skip to content
This repository was archived by the owner on Nov 8, 2022. It is now read-only.

partition

Lindsey Kuper edited this page Jan 15, 2015 · 3 revisions

Synopsis

myArray.partition(size)

Arguments

  • size the size of each element of the newly created dimension; the outermost dimension of myArray needs to be divisible by size

Returns

A freshly minted ParallelArray where the outermost dimension has been partitioned into elements of size size.

Example

pa = new ParallelArray([1,2,3,4])   // <1,2,3,4>
pa.partition(2)                    // <<1,2>,<3,4>>
Clone this wiki locally