Modifier and Type | Field and Description |
---|---|
protected long |
handle |
protected UserFunction |
uf |
Modifier | Constructor and Description |
---|---|
protected |
Op(int type) |
|
Op(UserFunction function,
boolean commute)
Bind a user-defined global reduction operation to an
Op object. |
Modifier and Type | Method and Description |
---|---|
protected void |
call(java.lang.Object invec,
java.lang.Object inoutvec,
int count) |
void |
free()
Java binding of the MPI operation
MPI_OP_FREE . |
boolean |
isCommutative()
Test if the operation is conmutative.
|
boolean |
isNull()
Test if operation object is null.
|
protected void |
setDatatype(Datatype t) |
protected final UserFunction uf
protected long handle
protected Op(int type)
public Op(UserFunction function, boolean commute)
Op
object.
Java binding of the MPI operation MPI_OP_CREATE
.
function
- user defined functioncommute
- true
if commutative, false
otherwiseprotected void setDatatype(Datatype t)
protected void call(java.lang.Object invec, java.lang.Object inoutvec, int count) throws MPIException
MPIException
public boolean isCommutative()
Java binding of the MPI operation MPI_OP_COMMUTATIVE
.
true
if commutative, false
otherwisepublic void free() throws MPIException
MPI_OP_FREE
.free
in interface Freeable
MPIException
- Signals that an MPI exception of some sort has occurred.public boolean isNull()