Learn R Programming

pbdDMAT (version 0.5-1)

getLocal: getLocal

Description

Get the value of the distributed matrix at global indices gi x gj.

Usage

getLocal(x, gi, gj, all.rank = TRUE, gridinfo)

Arguments

x

A distributed matrix.

gi, gj

Global row and column indices, respectively.

all.rank

Logical; if TRUE, then all processes will hold the desired value on exit. Otherwise, only the process who owns the local value returns this value, while every other process returns NULL.

gridinfo

An optional parameter; each local data lookup requires the data contained in gridinfo(ICTXT(x)). So you may specify it yourself (and if you are making many function calls, this is preferable performance-wise), or the lookup will be performed for you.

Value

The value at global index gi x gj.