| getLocal {pbdDMAT} | R Documentation |
getLocal
getLocal(x, gi, gj, all.rank = TRUE, gridinfo)
x |
A distributed matrix. |
gi, gj |
Global row and column indices, respectively. |
all.rank |
Logical; if |
gridinfo |
An optional parameter; each local data lookup requires the data
contained in |
## Not run: # Save code in a file "demo.r" and run with 2 processors by # > mpiexec -np 2 Rscript demo.r library(pbdDMAT) init.grid() x <- ddmatrix(1:100, 10, bldim=c(2, 2)) val <- getLocal(x, 5, 1) comm.print(val, all.rank=TRUE) val <- getLocal(x, 5, 1, all.rank=FALSE) comm.print(val, all.rank=TRUE) finalize() ## End(Not run)