Learn R Programming

pbdBASE (version 0.5-3)

base.descinit: descinit

Description

Creates ScaLAPACK descriptor array.

Usage

base.descinit(dim, bldim, ldim, ICTXT = 0)

Arguments

dim

Global dim.

bldim

Blocking dim.

ldim

Local dim.

ICTXT

BLACS context.

Value

A descriptor array.

Details

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

Examples

Run this code
# NOT RUN {
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)
  descx <- base.descinit(dim = dim, bldim = bldim, ldim = ldim)
  comm.print(descx)

  finalize()
"
pbdMPI::execmpi(spmd.code = spmd.code, nranks = 2L)

# }

Run the code above in your browser using DataLab