MPI_Type_indexed(3)

MPI_Type_indexed - Creates an indexed data type

As shipped in IRIX 6.5.22. Added in IRIX 6.5.19.

NAME
     MPI_Type_indexed - Creates an indexed data type

SYNOPSIS
     C:

          #include <mpi.h>

          int MPI_Type_indexed( count, blocklens, indices, old_type,
          newtype )
          int           count;
          int        blocklens[];
          int        indices[];
          MPI_Datatype  old_type;
          MPI_Datatype *newtype;


     C++:

          #include <mpi.h>

          Datatype Datatype::Create_indexed(
          int               count,
          const int         array_of_blocklengths[],
          const int         array_of_displacements[]) const


     Fortran:

          INCLUDE "mpif.h" (or USE MPI)

          INTEGER count, array_of_blocklengths(*),
          array_of_displacements(*), oldtype, newtype, ierror

          CALL MPI_TYPE_INDEXED(count, array_of_blocklengths(*),
          array_of_displacements(*), oldtype, newtype, ierror)


STANDARDS
     This release implements the MPI 1.2 standard, as documented by the MPI
     Forum in the spring 1997 release of MPI:  A Message Passing Interface
     Standard.

DESCRIPTION
     The MPI_Type_indexed routine creates an indexed data type.  This routine
     accepts the following parameters:

     count     Specifies the number of blocks. Also specifies the number of
               entries in indices and blocklens (nonnegative integer)
     blocklens Specifies the number of elements per block (array of
               nonnegative integers)

     indices   Specifies the displacement for each block, in multiples of
               old_type extent (array of integers)

     old_type  Specifies the old data type (handle)

     newtype   Specifies the new data type (handle)

     ierror    Specifies the return code value for successful completion,
               which is in MPI_SUCCESS.  MPI_SUCCESS is defined in the mpif.h
               file.