Learn R Programming

Rdsm (version 2.1.1)

getidxs: Parallelizing work assignment.

Description

Assigns to an Rdsm thread its portion of a set of indices, for the purpose of partitioning work to the threads.

Usage

getidxs(m)

Arguments

m
The sequence 1:m will be partitioned, and one portion will be assigned to the calling thread.

Value

The subrange assigned to the invoking thread.

Details

The range 1:m will be partitioned into r subranges, the i-th of which will be used by thread i to determine which work that thread has been assigned.