Vectors


Up: Datatypes and Heterogenity Next: Structures Previous: Basic Datatypes (C)

To specify this row (in C order), we can use

MPI_Type_vector( count, blocklen, stride, oldtype,  
                 &newtype ); 
MPI_Type_commit( &newtype ); 
The exact code for this is
MPI_Type_vector( 5, 1, 7, MPI_DOUBLE, &newtype ); 
MPI_Type_commit( &newtype ); 



Up: Datatypes and Heterogenity Next: Structures Previous: Basic Datatypes (C)