MPI Operator Objects

MPI provides an operator object through the MPI_Op handle. MPI defines built-in operations (MPI_MAX, MPI_SUM, etc) and lets the user define custom operations. A custom operation is defined as a pointer to a callback function. Operators are used in reduce operations.