Documentation of 'edu.rit.pj.reduction.ShortOp' Java class
ShortOp
edu.rit.pj.reduction

Class ShortOp



  • public abstract class ShortOp
    extends Op
    Class ShortOp is the abstract base class for a binary operation on short values, used to do reduction in a parallel program.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static ShortOp AND
      The short bitwise "and" binary operation.
      static ShortOp MAXIMUM
      The short maximum binary operation.
      static ShortOp MINIMUM
      The short minimum binary operation.
      static ShortOp OR
      The short bitwise "or" binary operation.
      static ShortOp PRODUCT
      The short product binary operation.
      static ShortOp SUM
      The short sum binary operation.
      static ShortOp XOR
      The short bitwise "exclusive or" binary operation.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      abstract short op(short x, short y)
      Perform this binary operation.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • SUM

        public static final ShortOp SUM
        The short sum binary operation.
      • PRODUCT

        public static final ShortOp PRODUCT
        The short product binary operation.
      • MINIMUM

        public static final ShortOp MINIMUM
        The short minimum binary operation.
      • MAXIMUM

        public static final ShortOp MAXIMUM
        The short maximum binary operation.
      • AND

        public static final ShortOp AND
        The short bitwise "and" binary operation.
      • OR

        public static final ShortOp OR
        The short bitwise "or" binary operation.
      • XOR

        public static final ShortOp XOR
        The short bitwise "exclusive or" binary operation.
    • Method Detail

      • op

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

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.