|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.rit.pj.reduction.Op
edu.rit.pj.reduction.ShortOp
public abstract class ShortOp
Class ShortOp is the abstract base class for a binary operation on short values, used to do reduction in a parallel program.
| Field Summary | |
|---|---|
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. |
| Constructor Summary | |
|---|---|
protected |
ShortOp()
Construct a new short binary operation. |
| Method Summary | |
|---|---|
abstract short |
op(short x,
short y)
Perform this binary operation. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final ShortOp SUM
public static final ShortOp PRODUCT
public static final ShortOp MINIMUM
public static final ShortOp MAXIMUM
public static final ShortOp AND
public static final ShortOp OR
public static final ShortOp XOR
| Constructor Detail |
|---|
protected ShortOp()
| Method Detail |
|---|
public abstract short op(short x,
short y)
x - First argument.y - Second argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||