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