Package cern.jet.math

Class Mult

  • All Implemented Interfaces:
    DoubleFunction

    public final class Mult
    extends Object
    implements DoubleFunction
    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 Detail

      • multiplicator

        public double multiplicator
        Public read/write access to avoid frequent object construction.
    • Constructor Detail

      • Mult

        protected Mult​(double multiplicator)
        Insert the method's description here. Creation date: (8/10/99 19:12:09)
    • Method Detail

      • apply

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

        public static Mult div​(double constant)
        a / constant.
      • mult

        public static Mult mult​(double constant)
        a * constant.