Class DoubleOp

java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.DoubleOp

public abstract class DoubleOp extends Op
Class DoubleOp is the abstract base class for a binary operation on double values, used to do reduction in a parallel program.
Version:
05-Jun-2007
Author:
Alan Kaminsky
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DoubleOp
    The double maximum binary operation.
    static final DoubleOp
    The double minimum binary operation.
    static final DoubleOp
    The double product binary operation.
    static final DoubleOp
    The double sum binary operation.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Construct a new double binary operation.
  • Method Summary

    Modifier and Type
    Method
    Description
    abstract double
    op(double x, double y)
    Perform this binary operation.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • SUM

      public static final DoubleOp SUM
      The double sum binary operation.
    • PRODUCT

      public static final DoubleOp PRODUCT
      The double product binary operation.
    • MINIMUM

      public static final DoubleOp MINIMUM
      The double minimum binary operation.
    • MAXIMUM

      public static final DoubleOp MAXIMUM
      The double maximum binary operation.
  • Constructor Details

    • DoubleOp

      protected DoubleOp()
      Construct a new double binary operation.
  • Method Details

    • op

      public abstract double op(double x, double y)
      Perform this binary operation.
      Parameters:
      x - First argument.
      y - Second argument.
      Returns:
      (x op y), where op stands for this binary operation.