edu.jas.ufd
Class GreatestCommonDivisorModEval
java.lang.Object
edu.jas.ufd.GreatestCommonDivisorAbstract<ModInteger>
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
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 |
mufd
protected final GreatestCommonDivisorAbstract<ModInteger> mufd
iufd
protected final GreatestCommonDivisorAbstract<BigInteger> iufd
GreatestCommonDivisorModEval
public GreatestCommonDivisorModEval()
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).