Class SortedLongArray
- java.lang.Object
-
- de.tilman_neumann.jml.factor.base.SortedLongArray
-
public class SortedLongArray extends Object
A reused buffer to store big factors of partials temporarily during trial division.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description SortedLongArray()
-
Method Summary
All Methods Instance Methods Concrete Methods 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()StringtoString()
-
-
-
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()
-
-