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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCombines two values of the reduction operation.Returns the identifier of the reduction operation.voidinitialize(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:ReductionOperationReturns the identifier of the reduction operation.- Specified by:
identifierin interfaceReductionOperation<T extends Number>- Returns:
- String representation of the operation.
-
initialize
Description copied from interface:ReductionOperationInitializes the variable with the identity value of the reduction operation.- Specified by:
initializein interfaceReductionOperation<T extends Number>- Parameters:
variable- the variable to initialize.
-
combine
Description copied from interface:ReductionOperationCombines two values of the reduction operation.- Specified by:
combinein interfaceReductionOperation<T extends Number>- Parameters:
a- the first value.b- the second value.- Returns:
- the result of the combination.
-
toString
-