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 voidadd(long factor)Add a factor.byte[]copyExponents()long[]copyFactors()longget(int i)intgetExponent(int i)voidreset()reset() must be called before using for a new Q.intsize()java.lang.StringtoString()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:
toStringin classjava.lang.Object
-