Package cern.jet.math
Class Mult
- java.lang.Object
-
- cern.jet.math.Mult
-
- All Implemented Interfaces:
DoubleFunction
public final class Mult extends java.lang.Object implements DoubleFunction
Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of- a * constant
- a / constant
-
-
Field Summary
Fields Modifier and Type Field Description doublemultiplicatorPublic read/write access to avoid frequent object construction.
-
Constructor Summary
Constructors Modifier Constructor Description protectedMult(double multiplicator)Insert the method's description here.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description doubleapply(double a)Returns the result of the function evaluation.static Multdiv(double constant)a / constant.static Multmult(double constant)a * constant.
-
-
-
Method Detail
-
apply
public final double apply(double a)
Returns the result of the function evaluation.- Specified by:
applyin interfaceDoubleFunction- Parameters:
a- argument passed to the function.- Returns:
- the result of the function.
-
div
public static Mult div(double constant)
a / constant.
-
mult
public static Mult mult(double constant)
a * constant.
-
-