cern.jet.math.tint
Class IntMult
- java.lang.Object
-
- cern.jet.math.tint.IntMult
-
- All Implemented Interfaces:
- IntFunction
public final class IntMult extends java.lang.Object implements IntFunction
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 and Description intmultiplicatorPublic read/write access to avoid frequent object construction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description intapply(int a)Returns the result of the function evaluation.static IntMultdiv(int constant)a / constant.static IntMultmult(int constant)a * constant.
-
-
-
Field Detail
-
multiplicator
public int multiplicator
Public read/write access to avoid frequent object construction.
-
-
Method Detail
-
apply
public final int apply(int a)
Returns the result of the function evaluation.- Specified by:
applyin interfaceIntFunction- Parameters:
a- argument passed to the function.- Returns:
- the result of the function.
-
div
public static IntMult div(int constant)
a / constant.
-
mult
public static IntMult mult(int constant)
a * constant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG