DComplexMult
cern.jet.math.tdcomplex

Class DComplexMult

  • All Implemented Interfaces:
    DComplexDComplexFunction


    public final class DComplexMultextends Objectimplements DComplexDComplexFunction
    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 TypeField and Description
      double[]multiplicator
      Public read/write access to avoid frequent object construction.
    • Field Detail

      • multiplicator

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

      • apply

        public final double[] apply(double[] a)
        Returns the result of the function evaluation.
        Specified by:
        apply in interface DComplexDComplexFunction
        Parameters:
        a - an argument passed to the function.
        Returns:
        the result of the function.
      • apply

        public final double[] apply(double re,             double im)
        Returns the result of the function evaluation.
        Specified by:
        apply in interface DComplexDComplexFunction
        Parameters:
        re - real part of an argument passed to the function
        im - imaginary part of an argument passed to the function
        Returns:
        the result of the function.
      • div

        public static DComplexMult div(double[] constant)
        a / constant.
      • mult

        public static DComplexMult mult(double[] constant)
        a * constant.

SCaVis 2.2 © jWork.ORG