Scroll to navigation

MPIR_Type_indexed(3) MPI MPIR_Type_indexed(3)

NAME

MPIR_Type_indexed - create an indexed datatype

SYNOPSIS

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

INPUT PARAMETERS

- number of blocks in type
- number of elements in each block
- offsets of blocks from start of type (see next parameter for units)
- 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)
- type (using handle) of datatype on which new type is based

OUTPUT PARAMETERS

- handle of new indexed datatype

RETURN VALUE

0 on success, -1 on failure.

11/12/2019