Documentation of 'cern.jet.math.tlong.LongPlusMultFirst' Java class
LongPlusMultFirst
cern.jet.math.tlong

Class 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
    a and b are variables, constant is fixed, but for performance reasons publicly accessible. Longended to be passed to matrix.assign(otherMatrix,function) methods.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      long multiplicator
      Public read/write access to avoid frequent object construction.
    • 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:
        apply in interface LongLongFunction
        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

You see the box below because you did not login.