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:
java.io.Serializable
public class FactorsMap<C extends GcdRingElem<C>> extends java.lang.Object implements java.io.Serializable
Container for the factors of a eventually non-squarefree factorization.- Author:
- Heinz Kredel
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description java.util.SortedMap<Factors<C>,java.lang.Long>
afactors
List of factors with coefficients from AlgebraicNumberRings.java.util.SortedMap<GenPolynomial<C>,java.lang.Long>
factors
List of factors with coefficients from C.GenPolynomial<C>
poly
Original polynomial to be factored with coefficients from C.
-
Constructor Summary
Constructors Constructor Description FactorsMap(GenPolynomial<C> p, java.util.SortedMap<GenPolynomial<C>,java.lang.Long> map)
Constructor.FactorsMap(GenPolynomial<C> p, java.util.SortedMap<GenPolynomial<C>,java.lang.Long> map, java.util.SortedMap<Factors<C>,java.lang.Long> amap)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AlgebraicNumberRing<C>
findExtensionField()
Find largest extension field.int
length()
Length.java.lang.String
toScript()
Get a scripting compatible string representation.java.lang.String
toString()
Get the String representation.
-
-
-
Field Detail
-
poly
public final GenPolynomial<C extends GcdRingElem<C>> poly
Original polynomial to be factored with coefficients from C.
-
factors
public final java.util.SortedMap<GenPolynomial<C extends GcdRingElem<C>>,java.lang.Long> factors
List of factors with coefficients from C.
-
afactors
public final java.util.SortedMap<Factors<C extends GcdRingElem<C>>,java.lang.Long> afactors
List of factors with coefficients from AlgebraicNumberRings.
-
-
Constructor Detail
-
FactorsMap
public FactorsMap(GenPolynomial<C> p, java.util.SortedMap<GenPolynomial<C>,java.lang.Long> map)
Constructor.- Parameters:
p
- given GenPolynomial over C.map
- irreducible factors of p with coefficients from C.
-
FactorsMap
public FactorsMap(GenPolynomial<C> p, java.util.SortedMap<GenPolynomial<C>,java.lang.Long> map, java.util.SortedMap<Factors<C>,java.lang.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 Detail
-
toString
public java.lang.String toString()
Get the String representation.- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
toScript
public java.lang.String toScript()
Get a scripting compatible string representation.- Returns:
- script compatible representation for this container.
- See Also:
ElemFactory.toScript()
-
length
public int length()
Length. Number of factors.- Returns:
- number of distinct factors.
-
findExtensionField
public AlgebraicNumberRing<C> findExtensionField()
Find largest extension field.- Returns:
- largest extension field or null if no extension field
-
-