Package edu.rit.pj.reduction
Class DoubleOp
java.lang.Object
edu.rit.pj.reduction.Op
edu.rit.pj.reduction.DoubleOp
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract double
op
(double x, double y) Perform this binary operation.
-
Field Details
-
SUM
The double sum binary operation. -
PRODUCT
The double product binary operation. -
MINIMUM
The double minimum binary operation. -
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
opy
), where op stands for this binary operation.
-