Class GroebnerBasePseudoParallel<C extends GcdRingElem<C>>
java.lang.Object
edu.jas.gb.GroebnerBaseAbstract<C>
edu.jas.gbufd.GroebnerBasePseudoParallel<C>
- Type Parameters:
C- coefficient type
- All Implemented Interfaces:
GroebnerBase<C>, Serializable
Groebner Base with pseudo reduction multi-threaded parallel algorithm.
Implements coefficient fraction free Groebner bases.
Coefficients can for example be integers or (commutative) univariate polynomials.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final RingFactory<C> Coefficient ring factory.private static final booleanprotected final GreatestCommonDivisorAbstract<C> Greatest common divisor engine for coefficient content and primitive parts.private static final org.apache.logging.log4j.Loggerprotected final ExecutorServicePool of threads to use.protected final PseudoReduction<C> Pseudo reduction engine.protected final intNumber of threads to use.Fields inherited from class GroebnerBaseAbstract
blas, strategy -
Constructor Summary
ConstructorsConstructorDescriptionGroebnerBasePseudoParallel(int threads, RingFactory<C> rf) Constructor.GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PairList<C> pl) Constructor.GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PseudoReduction<C> red) Constructor.GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PseudoReduction<C> red, ExecutorService pool) Constructor.GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PseudoReduction<C> red, ExecutorService pool, PairList<C> pl) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionintcancel()Cancel ExecutorService.GB(int modv, List<GenPolynomial<C>> F) Groebner base using pairlist class.minimalGB(List<GenPolynomial<C>> Gp) Minimal ordered Groebner basis.voidCleanup and terminate ExecutorService.Methods inherited from class GroebnerBaseAbstract
commonZeroTest, constructUnivariate, 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 -
debug
private static final boolean debug -
threads
protected final int threadsNumber of threads to use. -
pool
Pool of threads to use. -
engine
Greatest common divisor engine for coefficient content and primitive parts. -
red
Pseudo reduction engine. -
cofac
Coefficient ring factory.
-
-
Constructor Details
-
GroebnerBasePseudoParallel
Constructor.- Parameters:
threads- number of threads to use.rf- coefficient ring factory.
-
GroebnerBasePseudoParallel
Constructor.- Parameters:
threads- number of threads to use.rf- coefficient ring factory. Note: red must be an instance of PseudoReductionPar.red- pseudo reduction engine.
-
GroebnerBasePseudoParallel
public GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PseudoReduction<C> red, ExecutorService pool) Constructor.- Parameters:
threads- number of threads to use.rf- coefficient ring factory. Note: red must be an instance of PseudoReductionPar.red- pseudo reduction engine.pool- ExecutorService to use.
-
GroebnerBasePseudoParallel
Constructor.- Parameters:
threads- number of threads to use.rf- coefficient ring factory. Note: red must be an instance of PseudoReductionPar.pl- pair selection strategy
-
GroebnerBasePseudoParallel
public GroebnerBasePseudoParallel(int threads, RingFactory<C> rf, PseudoReduction<C> red, ExecutorService pool, PairList<C> pl) Constructor.- Parameters:
threads- number of threads to use.rf- coefficient ring factory. Note: red must be an instance of PseudoReductionPar.red- pseudo reduction engine.pool- ExecutorService to use.pl- pair selection strategy
-
-
Method Details
-
terminate
public void terminate()Cleanup and terminate ExecutorService.- Overrides:
terminatein classGroebnerBaseAbstract<C extends GcdRingElem<C>>
-
cancel
public int cancel()Cancel ExecutorService.- Overrides:
cancelin classGroebnerBaseAbstract<C extends GcdRingElem<C>>
-
GB
Groebner base using pairlist class.- Parameters:
modv- module variable number.F- polynomial list.- Returns:
- GB(F) a Groebner base of F.
-
minimalGB
Minimal ordered Groebner basis.- Specified by:
minimalGBin interfaceGroebnerBase<C extends GcdRingElem<C>>- Overrides:
minimalGBin classGroebnerBaseAbstract<C extends GcdRingElem<C>>- Parameters:
Gp- a Groebner base.- Returns:
- a reduced Groebner base of Gp.
-