Class SortedLongArray


  • public class SortedLongArray
    extends Object
    A reused buffer to store big factors of partials temporarily during trial division.
    Author:
    Tilman Neumann
    • Constructor Detail

      • SortedLongArray

        public SortedLongArray()
    • Method Detail

      • reset

        public void reset()
        reset() must be called before using for a new Q.
      • add

        public void add​(long factor)
        Add a factor.
        Parameters:
        factor -
      • get

        public long get​(int i)
        Parameters:
        i -
        Returns:
        the i.th entry
      • getExponent

        public int getExponent​(int i)
        Parameters:
        i -
        Returns:
        the i.th exponent
      • size

        public int size()
      • copyFactors

        public long[] copyFactors()
      • copyExponents

        public byte[] copyExponents()