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

Class FloatMult

  • All Implemented Interfaces:
    FloatFunction


    public final class FloatMult
    extends java.lang.Object
    implements FloatFunction
    Only for performance tuning of compute intensive linear algebraic computations. Constructs functions that return one of
    • a * constant
    • a / constant
    a is variable, constant is fixed, but for performance reasons publicly accessible. Intended to be passed to matrix.assign(function) methods.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      float multiplicator
      Public read/write access to avoid frequent object construction.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float apply(float a)
      Returns the result of the function evaluation.
      static FloatMult div(float constant)
      a / constant.
      static FloatMult mult(float constant)
      a * constant.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • multiplicator

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

      • apply

        public final float apply(float a)
        Returns the result of the function evaluation.
        Specified by:
        apply in interface FloatFunction
        Parameters:
        a - argument passed to the function.
        Returns:
        the result of the function.
      • div

        public static FloatMult div(float constant)
        a / constant.
      • mult

        public static FloatMult mult(float constant)
        a * constant.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.