Class MultiplicativeSetSquarefree<C extends GcdRingElem<C>>
java.lang.Object
edu.jas.gbufd.MultiplicativeSet<C>
edu.jas.gbufd.MultiplicativeSetSquarefree<C>
- Type Parameters:
C- coefficient type
- All Implemented Interfaces:
Serializable
Multiplicative set of squarefree and co-prime polynomials. a, b in M implies
a*b in M, 1 in M.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final SquarefreeAbstract<C> Squarefree decomposition engine.private static final org.apache.logging.log4j.LoggerFields inherited from class MultiplicativeSet
mset, ring -
Constructor Summary
ConstructorsModifierConstructorDescriptionMultiplicativeSet constructor.protectedMultiplicativeSetSquarefree(GenPolynomialRing<C> ring, List<GenPolynomial<C>> ms, SquarefreeAbstract<C> eng) MultiplicativeSet constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd(GenPolynomial<C> cc) Add polynomial to mset.booleanComparison with any other object.inthashCode()Hash code for this multiplicative set.replace(List<GenPolynomial<C>> L) Replace polynomial list of mset.toString()toString.Methods inherited from class MultiplicativeSet
contains, contains, isEmpty, removeFactors, removeFactors
-
Field Details
-
logger
private static final org.apache.logging.log4j.Logger logger -
engine
Squarefree decomposition engine.
-
-
Constructor Details
-
MultiplicativeSetSquarefree
MultiplicativeSet constructor. Constructs an empty multiplicative set.- Parameters:
ring- polynomial ring factory for coefficients.
-
MultiplicativeSetSquarefree
protected MultiplicativeSetSquarefree(GenPolynomialRing<C> ring, List<GenPolynomial<C>> ms, SquarefreeAbstract<C> eng) MultiplicativeSet constructor.- Parameters:
ring- polynomial ring factory for coefficients.ms- a list of non-zero polynomials.eng- squarefree factorization engine.
-
-
Method Details
-
toString
toString.- Overrides:
toStringin classMultiplicativeSet<C extends GcdRingElem<C>>- See Also:
-
equals
Comparison with any other object.- Overrides:
equalsin classMultiplicativeSet<C extends GcdRingElem<C>>- Parameters:
B- an Object.- Returns:
- true if this is equal to o, else false.
- See Also:
-
hashCode
public int hashCode()Hash code for this multiplicative set.- Overrides:
hashCodein classMultiplicativeSet<C extends GcdRingElem<C>>- See Also:
-
add
Add polynomial to mset.- Overrides:
addin classMultiplicativeSet<C extends GcdRingElem<C>>- Parameters:
cc- polynomial to be added to mset.- Returns:
- new multiplicative set.
-
replace
Replace polynomial list of mset.- Overrides:
replacein classMultiplicativeSet<C extends GcdRingElem<C>>- Parameters:
L- polynomial list to replace mset.- Returns:
- new multiplicative set.
-