Package mpi
Class Op
java.lang.Object
mpi.Op
- All Implemented Interfaces:
Freeable
This class represents
MPI_Op
.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Op
(int type) Op
(UserFunction function, boolean commute) Bind a user-defined global reduction operation to anOp
object. -
Method Summary
-
Field Details
-
uf
-
handle
protected long handle
-
-
Constructor Details
-
Op
protected Op(int type) -
Op
Bind a user-defined global reduction operation to anOp
object.Java binding of the MPI operation
MPI_OP_CREATE
.- Parameters:
function
- user defined functioncommute
-true
if commutative,false
otherwise
-
-
Method Details
-
setDatatype
-
call
- Throws:
MPIException
-
isCommutative
public boolean isCommutative()Test if the operation is commutative.Java binding of the MPI operation
MPI_OP_COMMUTATIVE
.- Returns:
true
if commutative,false
otherwise
-
free
Java binding of the MPI operationMPI_OP_FREE
.- Specified by:
free
in interfaceFreeable
- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
isNull
public boolean isNull()Test if operation object is null.- Returns:
- true if the operation object is null, false otherwise
-