MPI_TYPE_HVECTOR(3)MPI_TYPE_HVECTOR(3)NAMEMPI_Type_hvector - Creates a vector (strided) data type with offset in
bytes
SYNOPSIS
C:
#include <mpi.h>
int MPI_Type_hvector( count, blocklen, stride, old_type,
newtype )
int count;
int blocklen;
MPI_Aint stride;
MPI_Datatype old_type;
MPI_Datatype *newtype;
C++:
#include <mpi.h>
Datatype Datatype::Create_hvector(
int count,
int blocklength,
Aint stride) const
Fortran:
INCLUDE "mpif.h" (or USE MPI)
INTEGER count, blocklength, stride, oldtype,
newtype, ierror
CALL MPI_TYPE_HVECTOR( count, blocklength, stride, 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_hvector routine creates a vector (strided) data type with
offset in bytes. This routine accepts the following parameters:
count Specifies the number of blocks (nonnegative integer)
blocklen Specifies the number of elements in each block
(nonnegative integer)
Page 1
MPI_TYPE_HVECTOR(3)MPI_TYPE_HVECTOR(3)
stride Specifies the number of bytes between the start of each
block (integer)
old_type Specifies the old data type (handle)
newtype Returns 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.
Page 2