pbdBASE (version 0.5-3)

numroc2: numroc2

Description

A better version of NUMROC (NUMber Rows Or Columns). Returns the local dimension given global matrix + distribution parameters.

Usage

numroc2(N, NB, IPROC, NPROCS)

Arguments

N

Global number of rows/cols.

NB

Block size.

IPROC

Coordinate of the process whose local info is to be determined.

NPROCS

Total number of processors over which matrix is distributed.

Value

The local dimension.

Details

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