mpi_array.types.to_datatype

mpi_array.types.to_datatype(dtyp)[source]

Converts a numpy.dtype to a mpi4py.MPI.Datatype.

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.