Package jromp.parallel.var.reduction
Class Max<T extends Number>
java.lang.Object
jromp.parallel.var.reduction.Max<T>
- Type Parameters:
T
- the type of the reduction operation.
- All Implemented Interfaces:
ReductionOperation<T>
Reduction operation for maximum.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionCombines two values of the reduction operation.Returns the identifier of the reduction operation.void
initialize
(Variable<T> variable) Initializes the variable with the identity value of the reduction operation.toString()
-
Constructor Details
-
Max
public Max()
-
-
Method Details
-
identifier
Description copied from interface:ReductionOperation
Returns the identifier of the reduction operation.- Specified by:
identifier
in interfaceReductionOperation<T extends Number>
- Returns:
- String representation of the operation.
-
initialize
Description copied from interface:ReductionOperation
Initializes the variable with the identity value of the reduction operation.- Specified by:
initialize
in interfaceReductionOperation<T extends Number>
- Parameters:
variable
- the variable to initialize.
-
combine
Description copied from interface:ReductionOperation
Combines two values of the reduction operation.- Specified by:
combine
in interfaceReductionOperation<T extends Number>
- Parameters:
a
- the first value.b
- the second value.- Returns:
- the result of the combination.
-
toString
-