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
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jromp.parallel.var.reduction.ReductionOperation
getT
-
Constructor Details
-
BitwiseXor
public BitwiseXor()
-
-
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.
-