Package edu.jas.ufd
Class FactorsMap<C extends GcdRingElem<C>>
java.lang.Object
edu.jas.ufd.FactorsMap<C>
- Type Parameters:
C
- coefficient type
- All Implemented Interfaces:
Serializable
Container for the factors of a eventually non-squarefree factorization.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionList of factors with coefficients from AlgebraicNumberRings.final SortedMap
<GenPolynomial<C>, Long> List of factors with coefficients from C.final GenPolynomial
<C> Original polynomial to be factored with coefficients from C. -
Constructor Summary
ConstructorsConstructorDescriptionFactorsMap
(GenPolynomial<C> p, SortedMap<GenPolynomial<C>, Long> map) Constructor.FactorsMap
(GenPolynomial<C> p, SortedMap<GenPolynomial<C>, Long> map, SortedMap<Factors<C>, Long> amap) Constructor. -
Method Summary
-
Field Details
-
poly
Original polynomial to be factored with coefficients from C. -
factors
List of factors with coefficients from C. -
afactors
List of factors with coefficients from AlgebraicNumberRings.
-
-
Constructor Details
-
FactorsMap
Constructor.- Parameters:
p
- given GenPolynomial over C.map
- irreducible factors of p with coefficients from C.
-
FactorsMap
public FactorsMap(GenPolynomial<C> p, SortedMap<GenPolynomial<C>, Long> map, SortedMap<Factors<C>, Long> amap) Constructor.- Parameters:
p
- given GenPolynomial over C.map
- irreducible factors of p with coefficients from C.amap
- irreducible factors of p with coefficients from an algebraic number field.
-
-
Method Details
-
toString
Get the String representation. -
toScript
Get a scripting compatible string representation.- Returns:
- script compatible representation for this container.
- See Also:
-
length
public int length()Length. Number of factors.- Returns:
- number of distinct factors.
-
findExtensionField
Find largest extension field.- Returns:
- largest extension field or null if no extension field
-