cern.jet.math
Class PlusMult
java.lang.Object
|
+--cern.jet.math.PlusMult
- All Implemented Interfaces:
- DoubleDoubleFunction
- public final class PlusMult
- extends Object
- implements 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
a and b are variables, constant is fixed, but for performance reasons publicly accessible.
Intended to be passed to matrix.assign(otherMatrix,function) methods.
Field Summary |
double |
multiplicator
Public read/write access to avoid frequent object construction. |
multiplicator
public double multiplicator
- Public read/write access to avoid frequent object construction.
apply
public final double apply(double a,
double b)
- Returns the result of the function evaluation.
- Specified by:
apply
in interface DoubleDoubleFunction
- Following copied from interface:
cern.colt.function.DoubleDoubleFunction
- Parameters:
x
- the first argument passed to the function.y
- the second argument passed to the function.- Returns:
- the result of the function.
minusDiv
public static PlusMult minusDiv(double constant)
- a - b/constant.
minusMult
public static PlusMult minusMult(double constant)
- a - b*constant.
plusDiv
public static PlusMult plusDiv(double constant)
- a + b/constant.
plusMult
public static PlusMult plusMult(double constant)
- a + b*constant.
Submit a bug or feature. Check the Colt home page for the latest news.