Package cern.jet.math
Class PlusMult
java.lang.Object
cern.jet.math.PlusMult
- All Implemented Interfaces:
DoubleDoubleFunction
Only for performance tuning of compute intensive linear algebraic computations.
Constructs functions that return one of
- a + b*constant
- a - b*constant
- a + b/constant
- a - b/constant
-
Field Summary
FieldsModifier and TypeFieldDescriptiondouble
Public read/write access to avoid frequent object construction. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
PlusMult
(double multiplicator) Insert the method's description here. -
Method Summary
Modifier and TypeMethodDescriptionfinal double
apply
(double a, double b) Returns the result of the function evaluation.static PlusMult
minusDiv
(double constant) a - b/constant.static PlusMult
minusMult
(double constant) a - b*constant.static PlusMult
plusDiv
(double constant) a + b/constant.static PlusMult
plusMult
(double constant) a + b*constant.
-
Field Details
-
multiplicator
public double multiplicatorPublic read/write access to avoid frequent object construction.
-
-
Constructor Details
-
PlusMult
protected PlusMult(double multiplicator) Insert the method's description here. Creation date: (8/10/99 19:12:09)
-
-
Method Details
-
apply
public final double apply(double a, double b) Returns the result of the function evaluation.- Specified by:
apply
in interfaceDoubleDoubleFunction
- Parameters:
a
- the first argument passed to the function.b
- the second argument passed to the function.- Returns:
- the result of the function.
-
minusDiv
a - b/constant. -
minusMult
a - b*constant. -
plusDiv
a + b/constant. -
plusMult
a + b*constant.
-