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 TypeFieldDescriptiondoublePublic read/write access to avoid frequent object construction. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedPlusMult(double multiplicator) Insert the method's description here. -
Method Summary
Modifier and TypeMethodDescriptionfinal doubleapply(double a, double b) Returns the result of the function evaluation.static PlusMultminusDiv(double constant) a - b/constant.static PlusMultminusMult(double constant) a - b*constant.static PlusMultplusDiv(double constant) a + b/constant.static PlusMultplusMult(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:
applyin 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.
-