base.numroc {pbdBASE} | R Documentation |
NUMber of Rows Or Columns
base.numroc(dim, bldim, ICTXT = 0, fixme = TRUE)
dim |
Global dim. |
bldim |
Blocking dim. |
ICTXT |
BLACS context. |
fixme |
Should ldims be "rounded" to 0 or not. |
For advanced users only. See pbdDMAT for high-level functions.
A vector of local dim.
spmd.code <- " suppressMessages(library(pbdMPI)) suppressMessages(library(pbdBASE)) init.grid() ### Set desc. dim <- c(6L, 5L) bldim <- c(3L, 3L) ldim <- base.numroc(dim = dim, bldim = bldim) comm.print(ldim) finalize() " pbdMPI::execmpi(spmd.code = spmd.code, nranks = 2L)