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>

public class BitwiseXor<T extends Number> extends Object implements ReductionOperation<T>
Reduction operation for bitwise XOR.
  • Constructor Details

    • BitwiseXor

      public BitwiseXor()
  • Method Details

    • identifier

      public String identifier()
      Description copied from interface: ReductionOperation
      Returns the identifier of the reduction operation.
      Specified by:
      identifier in interface ReductionOperation<T extends Number>
      Returns:
      String representation of the operation.
    • initialize

      public void initialize(Variable<T> variable)
      Description copied from interface: ReductionOperation
      Initializes the variable with the identity value of the reduction operation.
      Specified by:
      initialize in interface ReductionOperation<T extends Number>
      Parameters:
      variable - the variable to initialize.
    • combine

      public T combine(T a, T b)
      Description copied from interface: ReductionOperation
      Combines two values of the reduction operation.
      Specified by:
      combine in interface ReductionOperation<T extends Number>
      Parameters:
      a - the first value.
      b - the second value.
      Returns:
      the result of the combination.