[This is preliminary documentation and is subject to change.]
Creates an MPI operation that invokes a user-provided function. The MPI operation
can be used with various reduction operations. MPI.NET provides support for user-defined
operations via the Operation<(Of <(T>)>) class.
Namespace:
MPIAssembly: MPI (in MPI.dll)
Version: 0.6.0.0 (0.6.0.0)
Syntax
| C# |
|---|
public static int MPI_Op_create( IntPtr function, int commute, out int op ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function MPI_Op_create ( _ function As IntPtr, _ commute As Integer, _ <OutAttribute> ByRef op As Integer _ ) As Integer |
| Visual C++ |
|---|
public: static int MPI_Op_create( IntPtr function, int commute, [OutAttribute] int% op ) |
Parameters
- function
- Type: System..::.IntPtr
A pointer to the user-defined function.
- commute
- Type: System..::.Int32
Whether this function is commutative.
- op
- Type:
System..::.Int32
%
Receives the newly-created MPI operation.