Package mpi
Class Op
- java.lang.Object
-
- mpi.Op
-
-
Field Summary
Fields Modifier and Type Field Description protected longhandleprotected UserFunctionuf
-
Constructor Summary
Constructors Modifier Constructor Description protectedOp(int type)Op(UserFunction function, boolean commute)Bind a user-defined global reduction operation to anOpobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcall(java.lang.Object invec, java.lang.Object inoutvec, int count)voidfree()Java binding of the MPI operationMPI_OP_FREE.booleanisCommutative()Test if the operation is commutative.booleanisNull()Test if operation object is null.protected voidsetDatatype(Datatype t)
-
-
-
Field Detail
-
uf
protected final UserFunction uf
-
handle
protected long handle
-
-
Constructor Detail
-
Op
protected Op(int type)
-
Op
public Op(UserFunction function, boolean commute)
Bind a user-defined global reduction operation to anOpobject.Java binding of the MPI operation
MPI_OP_CREATE.- Parameters:
function- user defined functioncommute-trueif commutative,falseotherwise
-
-
Method Detail
-
setDatatype
protected void setDatatype(Datatype t)
-
call
protected void call(java.lang.Object invec, java.lang.Object inoutvec, int count) throws MPIException- Throws:
MPIException
-
isCommutative
public boolean isCommutative()
Test if the operation is commutative.Java binding of the MPI operation
MPI_OP_COMMUTATIVE.- Returns:
trueif commutative,falseotherwise
-
free
public void free() throws MPIExceptionJava binding of the MPI operationMPI_OP_FREE.- Specified by:
freein 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
-
-