mpi4py.MPI.Datatype

Package mpi4py :: Module MPI :: Class Datatype |
[hide private]
[frames] | no frames]

# type Datatype

Datatype

Instance Methods | [hide private]
Commit(self) Commit the datatype |
Create_contiguous(self, int count) Create a contiguous datatype |
Create_darray(self, int size, int rank, gsizes, distribs, dargs, psizes, int order=ORDER_C) Create a datatype representing an HPF-like distributed array on Cartesian process grids |
Create_dup(self) Duplicate a datatype |
Create_f90_complex(type cls, int p, int r) Return a bounded complex datatype |
Create_f90_integer(type cls, int r) Return a bounded integer datatype |
Create_f90_real(type cls, int p, int r) Return a bounded real datatype |
Create_hindexed(self, blocklengths, displacements) Create an indexed datatype with displacements in bytes |
Create_hindexed_block(self, int blocklength, displacements) Create an indexed datatype with constant-sized blocks and displacements in bytes |
Create_hvector(self, int count, int blocklength, Aint stride) Create a vector (strided) datatype |
Create_indexed(self, blocklengths, displacements) Create an indexed datatype |
Create_indexed_block(self, int blocklength, displacements) Create an indexed datatype with constant-sized blocks |
Create_keyval(type cls, copy_fn=None, delete_fn=None, nopython=False) Create a new attribute key for datatypes |
Create_resized(self, Aint lb, Aint extent) Create a datatype with a new lower bound and extent |
Create_struct(type cls, blocklengths, displacements, datatypes) Create an datatype from a general set of block sizes, displacements and datatypes |
Create_subarray(self, sizes, subsizes, starts, int order=ORDER_C) Create a datatype for a subarray of a regular, multidimensional array |
Create_vector(self, int count, int blocklength, int stride) Create a vector (strided) datatype |
Delete_attr(self, int keyval) Delete attribute value associated with a key |
Dup(self) Duplicate a datatype |
Free(self) Free the datatype |
Free_keyval(type cls, int keyval) Free and attribute key for datatypes |
Get_attr(self, int keyval) Retrieve attribute value by key |
Get_contents(self) Retrieve the actual arguments used in the call that created a datatype |
Get_envelope(self) Return information on the number and type of input arguments used in the call that created a datatype |
Get_extent(self) Return lower bound and extent of datatype |
Get_name(self) Get the print name for this datatype |
Get_size(self) Return the number of bytes occupied by entries in the datatype |
Get_true_extent(self) Return the true lower bound and extent of a datatype |
Match_size(type cls, int typeclass, int size) Find a datatype matching a specified size in bytes |
Pack(self, inbuf, outbuf, int position, Comm comm) Pack into contiguous memory according to datatype. |
Pack_external(self, datarep, inbuf, outbuf, Aint position) Pack into contiguous memory according to datatype, using a portable data representation (external32). |
Pack_external_size(self, datarep, int count) Returns the upper bound on the amount of space (in bytes) needed to pack a message according to datatype, using a portable data representation (external32). |
Pack_size(self, int count, Comm comm) Returns the upper bound on the amount of space (in bytes) needed to pack a message according to datatype. |
Resized(self, Aint lb, Aint extent) Create a datatype with a new lower bound and extent |
Set_attr(self, int keyval, attrval) Store attribute value associated with a key |
Set_name(self, name) Set the print name for this datatype |
Unpack(self, inbuf, int position, outbuf, Comm comm) Unpack from contiguous memory according to datatype. |
Unpack_external(self, datarep, inbuf, Aint position, outbuf) Unpack from contiguous memory according to datatype, using a portable data representation (external32). |
__eq__(y) x==y |
__ge__(y) x>=y |
__gt__(y) x>y |
__le__(y) x<=y |
__lt__(y) x<y |
__ne__(y) x!=y |
a new object with type S, a subtype of T |
__new__(S, ...) |
__nonzero__() x != 0 |
decode(self) Convenience method for decoding a datatype |
f2py(type cls, arg) |
py2f(self) |

Properties | [hide private]
| combiner datatype combiner
| contents datatype contents
| envelope datatype envelope
| extent extent
| is_named is a named datatype
| is_predefined is a predefined datatype
| lb lower bound
| name datatype name
| size size (in bytes)
| true_extent true extent
| true_lb true lower bound
| true_ub true upper bound
| ub upper bound

Method Details | [hide private]

### __new__(S, ...) |
Returns: a new object with type S, a subtype of T Overrides: object.__new__