Delegate method that will reduce the data.
The method wil take in two data variables and reduce them to another data variable,
resulting in a Log2(comm.Size) number of reductions when used in the communication reduction methods.
| C# | Visual Basic | Visual C++ |
public delegate T ReductionOperation<T>( T left, T right )
Public Delegate Function ReductionOperation(Of T) ( _ left As T, _ right As T _ ) As T
generic<typename T> public delegate T ReductionOperation( T left, T right )
- T
- type of data
- left (T)
- left intput parameter
- right (T)
- right input parameter
reduction of the inputs