Class SingleBlockHybridSieve
- java.lang.Object
-
- de.tilman_neumann.jml.factor.siqs.sieve.SingleBlockHybridSieve
-
- All Implemented Interfaces:
Sieve
public class SingleBlockHybridSieve extends Object implements Sieve
Combination of a monolithic sieve for large primes > sieveArraySize/3, and a single block sieve for p < sieveArraySize/3. Sieving incomplete blocks makes no sense, because we have to run through all primes, but harvest only a small x-range. Thus, we arrange blocks such that block size divides sieve array size.- Author:
- Tilman Neumann
-
-
Constructor Summary
Constructors Constructor Description SingleBlockHybridSieve(int blockSize)
Full constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanUp()
Release memory after a factorization.String
getName()
SieveReport
getReport()
void
initializeForAParameter(SolutionArrays solutionArrays, int filteredBaseSize)
Set (filtered) prime base and smallest x1, x2 solutions for a new a-parameter.void
initializeForN(SieveParams sieveParams, int mergedBaseSize)
Initialize for a new N.List<Integer>
sieve()
Sieve for a new set of x1, x2 solutions.
-
-
-
Method Detail
-
getName
public String getName()
-
initializeForN
public void initializeForN(SieveParams sieveParams, int mergedBaseSize)
Description copied from interface:Sieve
Initialize for a new N. In PSIQS, this method is called for each thread, so things that can be computed before should be computed before.- Specified by:
initializeForN
in interfaceSieve
- Parameters:
sieveParams
- basic sieve parameters for a new NmergedBaseSize
- size of prime/power base after merging, before filtering
-
initializeForAParameter
public void initializeForAParameter(SolutionArrays solutionArrays, int filteredBaseSize)
Description copied from interface:Sieve
Set (filtered) prime base and smallest x1, x2 solutions for a new a-parameter.- Specified by:
initializeForAParameter
in interfaceSieve
filteredBaseSize
- number of primes and powers use for sieving
-
sieve
public List<Integer> sieve()
Description copied from interface:Sieve
Sieve for a new set of x1, x2 solutions.
-
getReport
public SieveReport getReport()
-
-