get_local_dim: get_local_dim

Description Usage Arguments Details Value

View source: R/get_local_dim.r

Description

Given a global number of rows or columns, get the corresponding local number of rows or columns. Pass the number of rows for a shaq and the number of columns for a tshaq.

Usage

1

Arguments

dim

Either the global number of rows or the global number of columns.

Details

This assumes that the data is distributed across ranks in roughly equal pieces. Modify the communicator by setting .pbd_env$SPMD.CT$comm.

Value

The number of rows/columns which is local to the calling rank.


RBigData/pbdSHAQ documentation built on Nov. 9, 2021, 9:10 a.m.