|
||||||||||
| 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.LongOp
public abstract class LongOp
Class LongOp is the abstract base class for a binary operation on long values, used to do reduction in a parallel program.
| Field Summary | |
|---|---|
static LongOp |
AND
The long bitwise "and" binary operation. |
static LongOp |
MAXIMUM
The long maximum binary operation. |
static LongOp |
MINIMUM
The long minimum binary operation. |
static LongOp |
OR
The long bitwise "or" binary operation. |
static LongOp |
PRODUCT
The long product binary operation. |
static LongOp |
SUM
The long sum binary operation. |
static LongOp |
XOR
The long bitwise "exclusive or" binary operation. |
| Constructor Summary | |
|---|---|
protected |
LongOp()
Construct a new long binary operation. |
| Method Summary | |
|---|---|
abstract long |
op(long x,
long 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 LongOp SUM
public static final LongOp PRODUCT
public static final LongOp MINIMUM
public static final LongOp MAXIMUM
public static final LongOp AND
public static final LongOp OR
public static final LongOp XOR
| Constructor Detail |
|---|
protected LongOp()
| Method Detail |
|---|
public abstract long op(long x,
long y)
x - First argument.y - Second argument.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||