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

public class FactorsMap<C extends GcdRingElem<C>> extends Object implements Serializable
Container for the factors of a eventually non-squarefree factorization.
See Also:
  • Field Details

  • Constructor Details

    • FactorsMap

      public FactorsMap(GenPolynomial<C> p, SortedMap<GenPolynomial<C>,Long> map)
      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

      public String toString()
      Get the String representation.
      Overrides:
      toString in class Object
      See Also:
    • toScript

      public String 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

      public AlgebraicNumberRing<C> findExtensionField()
      Find largest extension field.
      Returns:
      largest extension field or null if no extension field