cern.jet.math.tlong
Class LongPlusMultFirst
- java.lang.Object
-
- cern.jet.math.tlong.LongPlusMultFirst
-
- All Implemented Interfaces:
- LongLongFunction
public final class LongPlusMultFirst extends java.lang.Object implements LongLongFunction
Only for performance tuning of compute longensive linear algebraic computations. Constructs functions that return one of- a + b*constant
- a - b*constant
- a + b/constant
- a - b/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, long b)Returns the result of the function evaluation.static LongPlusMultFirstminusMult(long constant)a - b*constant.static LongPlusMultFirstplusMult(long constant)a + b*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, long b)Returns the result of the function evaluation.- Specified by:
applyin interfaceLongLongFunction- Parameters:
a- the first argument passed to the function.b- the second argument passed to the function.- Returns:
- the result of the function.
-
minusMult
public static LongPlusMultFirst minusMult(long constant)
a - b*constant.
-
plusMult
public static LongPlusMultFirst plusMult(long constant)
a + b*constant.
-
-
DMelt 3.0 © DataMelt by jWork.ORG