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