C - coefficient typepublic class Factors<C extends GcdRingElem<C>> extends java.lang.Object implements java.lang.Comparable<Factors<C>>, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
AlgebraicNumberRing<C> |
afac
Algebraic field extension over C.
|
java.util.List<GenPolynomial<AlgebraicNumber<C>>> |
afactors
List of factors with coefficients from AlgebraicNumberRing<C>.
|
GenPolynomial<AlgebraicNumber<C>> |
apoly
Original polynomial to be factored with coefficients from
AlgebraicNumberRing<C>.
|
java.util.List<Factors<AlgebraicNumber<C>>> |
arfactors
List of factors with coefficients from AlgebraicNumberRing<AlgebraicNumber<C>>.
|
GenPolynomial<C> |
poly
Original (irreducible) polynomial to be factored with coefficients from C.
|
| Constructor and Description |
|---|
Factors(GenPolynomial<C> p)
Constructor.
|
Factors(GenPolynomial<C> p,
AlgebraicNumberRing<C> af,
GenPolynomial<AlgebraicNumber<C>> ap,
java.util.List<GenPolynomial<AlgebraicNumber<C>>> afact)
Constructor.
|
Factors(GenPolynomial<C> p,
AlgebraicNumberRing<C> af,
GenPolynomial<AlgebraicNumber<C>> ap,
java.util.List<GenPolynomial<AlgebraicNumber<C>>> afact,
java.util.List<Factors<AlgebraicNumber<C>>> arfact)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Factors<C> facs)
Comparison.
|
boolean |
equals(java.lang.Object B)
Comparison with any other object.
|
AlgebraicNumberRing<C> |
findExtensionField()
Find largest extension field.
|
Factors<AlgebraicNumber<C>> |
getFactor(GenPolynomial<AlgebraicNumber<C>> p)
Get the factor for polynomial.
|
java.util.List<GenPolynomial<AlgebraicNumber<C>>> |
getFactors()
Get the list of factors at one level.
|
int |
hashCode()
Hash code for this Factors.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
Get the String representation.
|
public final GenPolynomial<C extends GcdRingElem<C>> poly
public final AlgebraicNumberRing<C extends GcdRingElem<C>> afac
public final GenPolynomial<AlgebraicNumber<C extends GcdRingElem<C>>> apoly
public final java.util.List<GenPolynomial<AlgebraicNumber<C extends GcdRingElem<C>>>> afactors
public final java.util.List<Factors<AlgebraicNumber<C extends GcdRingElem<C>>>> arfactors
public Factors(GenPolynomial<C> p)
p - absolute irreducible GenPolynomial.public Factors(GenPolynomial<C> p, AlgebraicNumberRing<C> af, GenPolynomial<AlgebraicNumber<C>> ap, java.util.List<GenPolynomial<AlgebraicNumber<C>>> afact)
p - irreducible GenPolynomial over C.af - algebraic extension field of C where p has factors from afact.ap - GenPolynomial p represented with coefficients from af.afact - absolute irreducible factors of p with coefficients from af.public Factors(GenPolynomial<C> p, AlgebraicNumberRing<C> af, GenPolynomial<AlgebraicNumber<C>> ap, java.util.List<GenPolynomial<AlgebraicNumber<C>>> afact, java.util.List<Factors<AlgebraicNumber<C>>> arfact)
p - irreducible GenPolynomial over C.af - algebraic extension field of C where p has factors from afact.ap - GenPolynomial p represented with coefficients from af.afact - absolute irreducible factors of p with coefficients from af.arfact - further absolute irreducible factors of p with coefficients from extensions of af.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
ElemFactory.toScript()public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object B)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int compareTo(Factors<C> facs)
compareTo in interface java.lang.Comparable<Factors<C extends GcdRingElem<C>>>facs - factors container.public AlgebraicNumberRing<C> findExtensionField()
public java.util.List<GenPolynomial<AlgebraicNumber<C>>> getFactors()
public Factors<AlgebraicNumber<C>> getFactor(GenPolynomial<AlgebraicNumber<C>> p)