Learn R Programming

npRmpi (version 0.60-20)

npRmpi-internal: Internal npRmpi functions

Description

Internal functions used by other MPI functions. These are not intended to be called directly by the user.

Usage

mpi.comm.is.null(comm)
string(length)
.docall(fun, args)
.force.type(x, type)
.mpi.undefined()
.mpi.worker.apply(n, tag)
.mpi.worker.applyLB(n)
.mpi.worker.exec(tag, ret, simplify)
.mpi.worker.sim(n, nsim, run)
.simplify(n, answer, simplify, len = 1, recursive = FALSE)
.splitIndices(nx, ncl)
.typeindex(x)

Value

Internal helpers; return values vary by function:

  • mpi.comm.is.null: logical indicator.

  • string: character string of requested length.

  • .docall: result of calling fun with args.

  • .force.type: coerced object of the requested type.

  • .mpi.undefined: integer constant used by MPI.

  • .mpi.worker.apply, .mpi.worker.applyLB, .mpi.worker.exec, .mpi.worker.sim: internal worker results (typically lists or vectors).

  • .simplify: simplified result (vector, matrix, or list).

  • .splitIndices: list of index vectors.

  • .typeindex: integer type code.

Arguments

comm

a communicator number.

length

length of a string.

fun

a function or name of a function.

args

a list of arguments.

x

an object.

type

a type indicator.

n

number of tasks.

tag

an MPI tag.

ret

logical; whether to return a value.

simplify

logical; whether to simplify the result.

nsim

number of simulations.

run

run indicator.

answer

a result list.

len

expected length.

recursive

logical; whether to unlist recursively.

nx

number of elements.

ncl

number of clusters.

Author

Hao Yu and Jeffrey Racine

Details

These functions are required for internal MPI communication and slave execution.