foreach: Utilities and Extensions for Foreach Loops

Description Usage Arguments Methods (by generic)

Description

registerDoBackend is a unified register function for foreach backends.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
registerDoBackend(object, ...)

getDoBackend()

setDoBackend(data, cleanup = FALSE)

register(x, ...)

## S3 method for class 'foreach_backend'
register(x, ...)

ForeachBackend(object, ...)

## S4 method for signature 'ANY'
ForeachBackend(object, ...)

## S4 method for signature 'character'
ForeachBackend(object, ...)

## S4 method for signature 'missing'
ForeachBackend(object, ...)

## S4 method for signature ''NULL''
ForeachBackend(object, ...)

## S4 method for signature 'cluster'
ForeachBackend(object, ...)

## S4 method for signature 'numeric'
ForeachBackend(object, ...)

## S4 method for signature 'doParallel_backend'
ForeachBackend(object, cl, type = NULL)

## S4 method for signature 'doParallelMC_backend'
ForeachBackend(object, ...)

## S4 method for signature 'doParallelSNOW_backend'
ForeachBackend(object, ...)

## S4 method for signature 'doPSOCK_backend'
ForeachBackend(object, cl)

## S3 method for class 'doParallel_backend'
register(x, ...)

## S3 method for class 'doMPI_backend'
register(x, ...)

## S4 method for signature 'mpicluster'
ForeachBackend(object, ...)

## S4 method for signature 'doMPI_backend'
ForeachBackend(object, cl)

getDoParHosts(object, ...)

## S4 method for signature 'ANY'
getDoParHosts(object, ...)

getDoParNHosts(object)

Arguments

object

specification of a foreach backend, e.g. ‘SEQ’, ‘PAR’ (for doParallel), ‘MPI’, etc...

...

extra arguments passed to the backend own registration function.

data

internal data of a foreach %dopar% backend.

cleanup

logical that indicates if the previous backend's cleanup procedure should be run, before setting the new backend.

x

specification of a foreach backend

cl

cluster specification: a cluster object or a numeric that indicates the number of nodes to use.

type

type of cluster, See makeCluster.

Methods (by generic)

ForeachBackend:

getDoParHosts:


renozao/NMF documentation built on June 14, 2020, 9:35 p.m.