Package jromp.var.reduction
Class LogicalAnd
java.lang.Object
jromp.var.reduction.LogicalAnd
- All Implemented Interfaces:
ReductionOperation<Boolean>
Reduction operation for logical AND.
-
Method Summary
Modifier and TypeMethodDescriptionCombines two values of the reduction operation.Returns the identifier of the reduction operation.voidinitialize(Variable<Boolean> variable) Initializes the variable with the identity value of the reduction operation.toString()
-
Method Details
-
identifier
Description copied from interface:ReductionOperationReturns the identifier of the reduction operation.- Specified by:
identifierin interfaceReductionOperation<Boolean>- 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<Boolean>- Parameters:
variable- the variable to initialize.
-
combine
Description copied from interface:ReductionOperationCombines two values of the reduction operation.- Specified by:
combinein interfaceReductionOperation<Boolean>- Parameters:
a- the first value.b- the second value.- Returns:
- the result of the combination.
-
toString
-