Package edu.jas.gb
Class GroebnerBaseSeqPairParallel<C extends RingElem<C>>
java.lang.Object
edu.jas.gb.GroebnerBaseAbstract<C>
edu.jas.gb.GroebnerBaseSeqPairParallel<C>
- Type Parameters:
C
- coefficient type
- All Implemented Interfaces:
GroebnerBase<C>
,Serializable
Groebner Base parallel algorithm. Makes some effort to produce the same
sequence of critical pairs as in the sequential version. However already
reduced pairs are not rereduced if new polynomials appear. Implements a
shared memory parallel version of Groebner bases. Slaves maintain pairlist.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.apache.logging.log4j.Logger
protected final ExecutorService
Pool of threads to use.protected final int
Number of threads to use.Fields inherited from class edu.jas.gb.GroebnerBaseAbstract
blas, red, strategy
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor.GroebnerBaseSeqPairParallel
(int threads) Constructor.GroebnerBaseSeqPairParallel
(int threads, Reduction<C> red) Constructor.GroebnerBaseSeqPairParallel
(int threads, ExecutorService pool) Constructor.GroebnerBaseSeqPairParallel
(int threads, ExecutorService pool, Reduction<C> red) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionint
cancel()
Cancel ExecutorService.GB
(int modv, List<GenPolynomial<C>> F) Parallel Groebner base using sequential pair order class.minimalGB
(List<GenPolynomial<C>> Fp) Minimal ordered groebner basis, parallel.void
Cleanup and terminate ExecutorService.Methods inherited from class edu.jas.gb.GroebnerBaseAbstract
commonZeroTest, constructUnivariate, criterion3, extGB, extGB, GB, GB, GB, isGB, isGB, isGB, isGB, isGB, isGB, isGBidem, isGBsimple, isMinimalGB, isMinReductionMatrix, isMinReductionMatrix, isReductionMatrix, isReductionMatrix, minimalExtendedGB, normalizeMatrix, normalizeZerosOnes, toString, univariateDegrees
-
Field Details
-
logger
private static final org.apache.logging.log4j.Logger logger -
threads
protected final int threadsNumber of threads to use. -
pool
Pool of threads to use.
-
-
Constructor Details
-
GroebnerBaseSeqPairParallel
public GroebnerBaseSeqPairParallel()Constructor. -
GroebnerBaseSeqPairParallel
public GroebnerBaseSeqPairParallel(int threads) Constructor.- Parameters:
threads
- number of threads to use.
-
GroebnerBaseSeqPairParallel
Constructor.- Parameters:
threads
- number of threads to use.pool
- ExecutorService to use.
-
GroebnerBaseSeqPairParallel
Constructor.- Parameters:
threads
- number of threads to use.red
- parallelism aware reduction engine
-
GroebnerBaseSeqPairParallel
Constructor.- Parameters:
threads
- number of threads to use.pool
- ExecutorService to use.red
- parallelism aware reduction engine
-
-
Method Details
-
terminate
public void terminate()Cleanup and terminate ExecutorService.- Overrides:
terminate
in classGroebnerBaseAbstract<C extends RingElem<C>>
-
cancel
public int cancel()Cancel ExecutorService.- Overrides:
cancel
in classGroebnerBaseAbstract<C extends RingElem<C>>
-
GB
Parallel Groebner base using sequential pair order class. Slaves maintain pairlist.- Parameters:
modv
- number of module variables.F
- polynomial list.- Returns:
- GB(F) a Groebner base of F.
-
minimalGB
Minimal ordered groebner basis, parallel.- Specified by:
minimalGB
in interfaceGroebnerBase<C extends RingElem<C>>
- Overrides:
minimalGB
in classGroebnerBaseAbstract<C extends RingElem<C>>
- Parameters:
Fp
- a Groebner base.- Returns:
- minimalGB(F) a minimal Groebner base of Fp.
-