edu.jas.ufd
Class GreatestCommonDivisorModEval

java.lang.Object
  extended by edu.jas.ufd.GreatestCommonDivisorAbstract<ModInteger>
      extended by edu.jas.ufd.GreatestCommonDivisorModEval
All Implemented Interfaces:
GreatestCommonDivisor<ModInteger>

public class GreatestCommonDivisorModEval
extends GreatestCommonDivisorAbstract<ModInteger>

Greatest common divisor algorithms with modular evaluation algorithm for recursion.

Author:
Heinz Kredel

Field Summary
protected  GreatestCommonDivisorAbstract<BigInteger> iufd
           
protected  GreatestCommonDivisorAbstract<ModInteger> mufd
           
 
Constructor Summary
GreatestCommonDivisorModEval()
           
 
Method Summary
 GenPolynomial<ModInteger> baseGcd(GenPolynomial<ModInteger> P, GenPolynomial<ModInteger> S)
          Univariate GenPolynomial greatest comon divisor.
 GenPolynomial<ModInteger> gcd(GenPolynomial<ModInteger> P, GenPolynomial<ModInteger> S)
          GenPolynomial greatest comon divisor, modular evaluation algorithm.
 GenPolynomial<GenPolynomial<ModInteger>> recursiveGcd(GenPolynomial<GenPolynomial<ModInteger>> P, GenPolynomial<GenPolynomial<ModInteger>> S)
          Univariate GenPolynomial recursive greatest comon divisor.
 
Methods inherited from class edu.jas.ufd.GreatestCommonDivisorAbstract
baseContent, basePrimitivePart, baseSquarefreeFactors, baseSquarefreePart, content, divide, gcd, lcm, primitivePart, recursiveContent, recursivePrimitivePart, recursiveSquarefreeFactors, recursiveSquarefreePart, resultant, squarefreeFactors, squarefreePart
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mufd

protected final GreatestCommonDivisorAbstract<ModInteger> mufd

iufd

protected final GreatestCommonDivisorAbstract<BigInteger> iufd
Constructor Detail

GreatestCommonDivisorModEval

public GreatestCommonDivisorModEval()
Method Detail

baseGcd

public GenPolynomial<ModInteger> baseGcd(GenPolynomial<ModInteger> P,
                                         GenPolynomial<ModInteger> S)
Univariate GenPolynomial greatest comon divisor. Delegate to subresultant baseGcd, should not be needed.

Specified by:
baseGcd in class GreatestCommonDivisorAbstract<ModInteger>
Parameters:
P - univariate GenPolynomial.
S - univariate GenPolynomial.
Returns:
gcd(P,S).

recursiveGcd

public GenPolynomial<GenPolynomial<ModInteger>> recursiveGcd(GenPolynomial<GenPolynomial<ModInteger>> P,
                                                             GenPolynomial<GenPolynomial<ModInteger>> S)
Univariate GenPolynomial recursive greatest comon divisor. Delegate to subresultant recursiveGcd, should not be needed.

Specified by:
recursiveGcd in class GreatestCommonDivisorAbstract<ModInteger>
Parameters:
P - univariate recursive GenPolynomial.
S - univariate recursive GenPolynomial.
Returns:
gcd(P,S).

gcd

public GenPolynomial<ModInteger> gcd(GenPolynomial<ModInteger> P,
                                     GenPolynomial<ModInteger> S)
GenPolynomial greatest comon divisor, modular evaluation algorithm. Method name must be different because of parameter type erasure.

Specified by:
gcd in interface GreatestCommonDivisor<ModInteger>
Overrides:
gcd in class GreatestCommonDivisorAbstract<ModInteger>
Parameters:
P - GenPolynomial.
S - GenPolynomial.
Returns:
gcd(P,S).