Package edu.jas.gbufd
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.Logger
Fields inherited from class edu.jas.gbufd.MultiplicativeSet
mset, ring
-
Constructor Summary
ConstructorsModifierConstructorDescriptionMultiplicativeSet constructor.protected
MultiplicativeSetSquarefree
(GenPolynomialRing<C> ring, List<GenPolynomial<C>> ms, SquarefreeAbstract<C> eng) MultiplicativeSet constructor. -
Method Summary
Modifier and TypeMethodDescriptionadd
(GenPolynomial<C> cc) Add polynomial to mset.boolean
Comparison with any other object.int
hashCode()
Hash code for this multiplicative set.replace
(List<GenPolynomial<C>> L) Replace polynomial list of mset.toString()
toString.Methods inherited from class edu.jas.gbufd.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:
toString
in classMultiplicativeSet<C extends GcdRingElem<C>>
- See Also:
-
equals
Comparison with any other object.- Overrides:
equals
in 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:
hashCode
in classMultiplicativeSet<C extends GcdRingElem<C>>
- See Also:
-
add
Add polynomial to mset.- Overrides:
add
in classMultiplicativeSet<C extends GcdRingElem<C>>
- Parameters:
cc
- polynomial to be added to mset.- Returns:
- new multiplicative set.
-
replace
Replace polynomial list of mset.- Overrides:
replace
in classMultiplicativeSet<C extends GcdRingElem<C>>
- Parameters:
L
- polynomial list to replace mset.- Returns:
- new multiplicative set.
-