Package cern.jet.math

Class PlusMult

  • All Implemented Interfaces:
    DoubleDoubleFunction

    public final class PlusMult
    extends java.lang.Object
    implements DoubleDoubleFunction
    Only for performance tuning of compute intensive 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. Intended to be passed to matrix.assign(otherMatrix,function) methods.
    • Field Summary

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

      Constructors 
      Modifier Constructor Description
      protected PlusMult​(double multiplicator)
      Insert the method's description here.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double apply​(double a, double b)
      Returns the result of the function evaluation.
      static PlusMult minusDiv​(double constant)
      a - b/constant.
      static PlusMult minusMult​(double constant)
      a - b*constant.
      static PlusMult plusDiv​(double constant)
      a + b/constant.
      static PlusMult plusMult​(double constant)
      a + b*constant.
      • Methods inherited from class java.lang.Object

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

      • multiplicator

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

      • PlusMult

        protected PlusMult​(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,
                                  double b)
        Returns the result of the function evaluation.
        Specified by:
        apply in interface DoubleDoubleFunction
        Parameters:
        a - the first argument passed to the function.
        b - the second argument passed to the function.
        Returns:
        the result of the function.
      • minusDiv

        public static PlusMult minusDiv​(double constant)
        a - b/constant.
      • minusMult

        public static PlusMult minusMult​(double constant)
        a - b*constant.
      • plusDiv

        public static PlusMult plusDiv​(double constant)
        a + b/constant.
      • plusMult

        public static PlusMult plusMult​(double constant)
        a + b*constant.