mpi_array.types.create_datatype

mpi_array.types.create_datatype(dtyp)[source]

Creates a mpi4py.MPI.Datatype from a given numpy.dtype.

Parameters:dtyp (numpy.dtype) – This gets converted to a mpi4py.MPI.Datatype.
Return type:mpi4py.MPI.Datatype
Returns:A mpi4py.MPI.Datatype for the given dtyp.