Documentation of 'cern.jet.math.tfloat.FloatPlusMultFirst' Java class
FloatPlusMultFirst
cern.jet.math.tfloat

Class FloatPlusMultFirst

  • All Implemented Interfaces:
    FloatFloatFunction


    public final class FloatPlusMultFirst
    extends java.lang.Object
    implements FloatFloatFunction
    Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of
    • a*constant + b
    • a*constant - b
    • a/constant + b
    • a/constant - b
    a and b are variables, constant is fixed, but for performance reasons publicly accessible. Intended to be passed to matrix.assign(otherMatrix,function) methods.
    • Field Detail

      • multiplicator

        public float multiplicator
        Public read/write access to avoid frequent object construction.
    • Method Detail

      • apply

        public final float apply(float a,
                                 float b)
        Returns the result of the function evaluation.
        Specified by:
        apply in interface FloatFloatFunction
        Parameters:
        a - the first argument passed to the function.
        b - the second argument passed to the function.
        Returns:
        the result of the function.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.