base.numroc: numroc

Description Usage Arguments Details Value Examples

View source: R/dims.r

Description

NUMber of Rows Or Columns

Usage

1
base.numroc(dim, bldim, ICTXT = 0, fixme = TRUE)

Arguments

dim

Global dim.

bldim

Blocking dim.

ICTXT

BLACS context.

fixme

Should ldims be "rounded" to 0 or not.

Details

For advanced users only. See pbdDMAT for high-level functions.

Value

A vector of local dim.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
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)

RBigData/pbdBASE documentation built on Oct. 29, 2021, 6:19 p.m.