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>

public class Max<T extends Number> extends Object implements ReductionOperation<T>
Reduction operation for maximum.
  • Constructor Details

    • Max

      public Max()
  • 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.
    • toString

      public String toString()
      Overrides:
      toString in class Object