Package mpi
Class UserFunction
- java.lang.Object
-
- mpi.UserFunction
-
public abstract class UserFunction extends java.lang.Object
Java equivalent of theMPI_USER_FUNCTION
.
-
-
Constructor Summary
Constructors Constructor Description UserFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
call(java.lang.Object inVec, java.lang.Object inOutVec, int count, Datatype datatype)
User-defined function for a newOp
.void
call(java.nio.ByteBuffer in, java.nio.ByteBuffer inOut, int count, Datatype datatype)
User-defined function for a newOp
.
-
-
-
Method Detail
-
call
public void call(java.lang.Object inVec, java.lang.Object inOutVec, int count, Datatype datatype) throws MPIException
User-defined function for a newOp
.- Parameters:
inVec
- array of values to combine withinoutvec
elementsinOutVec
- in-out array of accumulator locationscount
- number of items in arraysdatatype
- type of each item- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
call
public void call(java.nio.ByteBuffer in, java.nio.ByteBuffer inOut, int count, Datatype datatype) throws MPIException
User-defined function for a newOp
.- Parameters:
in
- direct byte buffer to combine withinOut
bufferinOut
- in-out direct byte buffer of accumulator locationscount
- number of items in buffersdatatype
- type of each item- Throws:
MPIException
- Signals that an MPI exception of some sort has occurred.
-
-