edu.jas.ufd
Class FactorsMap<C extends GcdRingElem<C>>

java.lang.Object
  extended by 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
 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
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
 AlgebraicNumberRing<C> findExtensionField()
          Find largest extension field.
 java.lang.String toScript()
          Get a scripting compatible string representation.
 java.lang.String toString()
          Get the String representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 class java.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()

findExtensionField

public AlgebraicNumberRing<C> findExtensionField()
Find largest extension field.

Returns:
largest extension field or null if no extension field