Package jromp.parallel.var.reduction
Class BitwiseXor<T extends Number>
java.lang.Object
jromp.parallel.var.reduction.BitwiseXor<T>
- Type Parameters:
T- the type of the reduction operation.
- All Implemented Interfaces:
ReductionOperation<T>
Reduction operation for bitwise XOR.
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jromp.parallel.var.reduction.ReductionOperation
getT
-
Constructor Details
-
BitwiseXor
public BitwiseXor()
-
-
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.
-