Class FloatOp

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

public abstract class FloatOp extends Op
Class FloatOp is the abstract base class for a binary operation on float 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 FloatOp
    The float maximum binary operation.
    static final FloatOp
    The float minimum binary operation.
    static final FloatOp
    The float product binary operation.
    static final FloatOp
    The float sum binary operation.
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    abstract float
    op(float x, float 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 FloatOp SUM
      The float sum binary operation.
    • PRODUCT

      public static final FloatOp PRODUCT
      The float product binary operation.
    • MINIMUM

      public static final FloatOp MINIMUM
      The float minimum binary operation.
    • MAXIMUM

      public static final FloatOp MAXIMUM
      The float maximum binary operation.
  • Constructor Details

    • FloatOp

      protected FloatOp()
      Construct a new float binary operation.
  • Method Details

    • op

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