Class SortedLongArray

java.lang.Object
de.tilman_neumann.jml.factor.base.SortedLongArray

public class SortedLongArray
extends java.lang.Object
A reused buffer to store big factors of partials temporarily during trial division.
  • Constructor Summary

    Constructors
    Constructor Description
    SortedLongArray()  
  • Method Summary

    Modifier and Type Method Description
    void add​(long factor)
    Add a factor.
    byte[] copyExponents()  
    long[] copyFactors()  
    long get​(int i)  
    int getExponent​(int i)  
    void reset()
    reset() must be called before using for a new Q.
    int size()  
    java.lang.String toString()  

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SortedLongArray

      public SortedLongArray()
  • Method Details

    • 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()
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object