Class LinearCombinationPerformance.Factors

    • Constructor Detail

    • Method Detail

      • getLength

        public int getLength()
        Gets the length of the array of factors. This exists to be overridden by factors of a specific length. The default is to create factors of length 4 for use in the inlined scalar product methods.
        Returns:
        the length
      • getSize

        public int getSize()
        Gets the number of scalar products to compute.
        Returns:
        the size
      • getA

        public double[] getA​(int index)
        Gets the a factors.
        Parameters:
        index - the index
        Returns:
        Factors b.
      • getB

        public double[] getB​(int index)
        Gets the b factors.
        Parameters:
        index - the index
        Returns:
        Factors b.
      • setup

        public void setup()
        Create the factors.