Funktionsübersicht
. .
Abgeleitete Datentypen
Hilfesystem für den Message Passing Interface Standard MPI
MPI_Type_hvector
Liefert ein handle für einen abgeleiteten Datentyp, der aus
einer Anzahl von Blöcken besteht, welche ihreseits aus gleichartigen Elementen
eines vorhandenen Datentyps bestehen (mit Offset in Bytes)
Syntax:
MPI_Type_hvector( count, blocklen, stride, oldtype, newtype )
Input Parameter:
count - Anzahl der Blöcke (integer, nichtnegativ)
blocklen - Anzahl der Elemente je Block (integer, nichtnegativ)
stride - Anzahl von Bytes zwischen den Blockanfängen (integer)
oldtype - alter Datentyp (handle)
Output Parameter:
newtyp - neuer Datentyp (handle)
Aufruf:
#include "mpi.h"
int count, blocklen;
MPI_Aint stride;
MPI_Datatype oldtype, newtype;
...
MPI_Type_hvector(count, blocklen, stride, oldtype, &newtype);
MPI_Type_commit(&newtype);
...
MPI_Type_free(&newtype);
Beispiel