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:
java.io.Serializable
public class MultiplicativeSetSquarefree<C extends GcdRingElem<C>> extends MultiplicativeSet<C>
Multiplicative set of squarefree and co-prime polynomials. a, b in M implies a*b in M, 1 in M.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected SquarefreeAbstract<C>
engine
Squarefree decomposition engine.-
Fields inherited from class edu.jas.gbufd.MultiplicativeSet
mset, ring
-
-
Constructor Summary
Constructors Modifier Constructor Description MultiplicativeSetSquarefree(GenPolynomialRing<C> ring)
MultiplicativeSet constructor.protected
MultiplicativeSetSquarefree(GenPolynomialRing<C> ring, java.util.List<GenPolynomial<C>> ms, SquarefreeAbstract<C> eng)
MultiplicativeSet constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiplicativeSetSquarefree<C>
add(GenPolynomial<C> cc)
Add polynomial to mset.boolean
equals(java.lang.Object B)
Comparison with any other object.int
hashCode()
Hash code for this multiplicative set.MultiplicativeSetSquarefree<C>
replace(java.util.List<GenPolynomial<C>> L)
Replace polynomial list of mset.java.lang.String
toString()
toString.-
Methods inherited from class edu.jas.gbufd.MultiplicativeSet
contains, contains, isEmpty, removeFactors, removeFactors
-
-
-
-
Field Detail
-
engine
protected final SquarefreeAbstract<C extends GcdRingElem<C>> engine
Squarefree decomposition engine.
-
-
Constructor Detail
-
MultiplicativeSetSquarefree
public MultiplicativeSetSquarefree(GenPolynomialRing<C> ring)
MultiplicativeSet constructor. Constructs an empty multiplicative set.- Parameters:
ring
- polynomial ring factory for coefficients.
-
MultiplicativeSetSquarefree
protected MultiplicativeSetSquarefree(GenPolynomialRing<C> ring, java.util.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 Detail
-
toString
public java.lang.String toString()
toString.- Overrides:
toString
in classMultiplicativeSet<C extends GcdRingElem<C>>
- See Also:
Object.toString()
-
equals
public boolean equals(java.lang.Object B)
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:
Object.equals(java.lang.Object)
-
hashCode
public int hashCode()
Hash code for this multiplicative set.- Overrides:
hashCode
in classMultiplicativeSet<C extends GcdRingElem<C>>
- See Also:
Object.hashCode()
-
add
public MultiplicativeSetSquarefree<C> add(GenPolynomial<C> cc)
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
public MultiplicativeSetSquarefree<C> replace(java.util.List<GenPolynomial<C>> L)
Replace polynomial list of mset.- Overrides:
replace
in classMultiplicativeSet<C extends GcdRingElem<C>>
- Parameters:
L
- polynomial list to replace mset.- Returns:
- new multiplicative set.
-
-