mpi4py.MPI.Op

class mpi4py.MPI.Op(op=None)

Bases: object

Operation object

Parameters

op (Optional[Op]) –

Return type

Op

static __new__(cls, op=None)
Parameters

op (Optional[Op]) –

Return type

Op

Methods Summary

Create(function[, commute])

Create a user-defined operation

Free()

Free the operation

Is_commutative()

Query reduction operations for their commutativity

Reduce_local(inbuf, inoutbuf)

Apply a reduction operator to local data

f2py(arg)

py2f()

Attributes Summary

is_commutative

is commutative

is_predefined

is a predefined operation

Methods Documentation

classmethod Create(function, commute=False)

Create a user-defined operation

Free()

Free the operation

Return type

None

Is_commutative()

Query reduction operations for their commutativity

Return type

bool

Reduce_local(inbuf, inoutbuf)

Apply a reduction operator to local data

Parameters
Return type

None

classmethod f2py(arg)
Parameters

arg (int) –

Return type

Op

py2f()
Return type

int

Attributes Documentation

is_commutative

is commutative

is_predefined

is a predefined operation