Derived Datatypes: Indexed
Array of indices, useful for gather/scatter
MPI_TYPE_INDEXED (count, blocklens, indices, oldtype, newtype, ierr)
- IN count Number of blocks to be added
- IN blocklens Number of elements in each block -- an array of length count
- IN indices Displacements (an array of length count) for each block
- IN oldtype Datatype of each element
- OUT newtype Handle(pointer) for new derived type