cern.jet.math.tlong
Class LongMult
- java.lang.Object
-
- cern.jet.math.tlong.LongMult
-
- All Implemented Interfaces:
- LongFunction
public final class LongMult extends java.lang.Object implements LongFunction
Only for performance tuning of compute longensive linear algebraic computations. Constructs functions that return one of- a * constant
- a / constant
-
-
Field Summary
Fields Modifier and Type Field and Description longmultiplicatorPublic read/write access to avoid frequent object construction.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description longapply(long a)Returns the result of the function evaluation.static LongMultdiv(long constant)a / constant.static LongMultmult(long constant)a * constant.
-
-
-
Field Detail
-
multiplicator
public long multiplicator
Public read/write access to avoid frequent object construction.
-
-
Method Detail
-
apply
public final long apply(long a)
Returns the result of the function evaluation.- Specified by:
applyin interfaceLongFunction- Parameters:
a- argument passed to the function.- Returns:
- the result of the function.
-
div
public static LongMult div(long constant)
a / constant.
-
mult
public static LongMult mult(long constant)
a * constant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG