MPIR_Type_indexed(3)

MPIR_Type_indexed3

Create an indexed datatype

Usage

int MPIR_Type_indexed(int count,
                      const int *blocklength_array,
                      const void *displacement_array,
                      int dispinbytes, MPI_Datatype oldtype, MPI_Datatype * newtype)

Input parameters

count

- number of blocks in type

blocklength_array

- number of elements in each block

displacement_array

- offsets of blocks from start of type (see next parameter for units)

dispinbytes

- if nonzero, then displacements are in bytes (the displacement_array is an array of ints), otherwise they in terms of extent of oldtype (the displacement_array is an array of MPI_Aints)

oldtype

- type (using handle) of datatype on which new type is based

Output parameters

newtype

- handle of new indexed datatype

Return value

0 on success, -1 on failure.

From mpich-doc 3.3-3 in Debian 10 (Buster). Parsed by carta from the page's man source.