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

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

public class GCDProxy<C extends GcdRingElem<C>>
extends GreatestCommonDivisorAbstract<C>

Greatest common divisor parallel proxy.

Author:
Heinz Kredel

Field Summary
protected static int anzahl
          Thread pool size.
protected static int dauer
           
 GreatestCommonDivisor<C> e1
          GCD engines.
 GreatestCommonDivisor<C> e2
           
protected  java.util.concurrent.ExecutorService pool
          Thread pool.
 
Constructor Summary
GCDProxy(GreatestCommonDivisor<C> e1, GreatestCommonDivisor<C> e2)
          Proxy constructor.
 
Method Summary
 GenPolynomial<C> baseGcd(GenPolynomial<C> P, GenPolynomial<C> S)
          Univariate GenPolynomial greatest comon divisor.
 GenPolynomial<C> gcd(GenPolynomial<C> P, GenPolynomial<C> S)
          GenPolynomial greatest comon divisor.
 GenPolynomial<GenPolynomial<C>> recursiveGcd(GenPolynomial<GenPolynomial<C>> P, GenPolynomial<GenPolynomial<C>> S)
          Univariate GenPolynomial recursive greatest comon divisor.
 java.lang.String toString()
          Get the String representation as RingFactory.
 
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, wait, wait, wait
 

Field Detail

e1

public final GreatestCommonDivisor<C extends GcdRingElem<C>> e1
GCD engines.


e2

public final GreatestCommonDivisor<C extends GcdRingElem<C>> e2

pool

protected java.util.concurrent.ExecutorService pool
Thread pool.


anzahl

protected static final int anzahl
Thread pool size.

See Also:
Constant Field Values

dauer

protected static final int dauer
See Also:
Constant Field Values
Constructor Detail

GCDProxy

public GCDProxy(GreatestCommonDivisor<C> e1,
                GreatestCommonDivisor<C> e2)
Proxy constructor.

Method Detail

toString

public java.lang.String toString()
Get the String representation as RingFactory.

Overrides:
toString in class java.lang.Object
See Also:
Object.toString()

baseGcd

public GenPolynomial<C> baseGcd(GenPolynomial<C> P,
                                GenPolynomial<C> S)
Univariate GenPolynomial greatest comon divisor. Uses pseudoRemainder for remainder.

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

recursiveGcd

public GenPolynomial<GenPolynomial<C>> recursiveGcd(GenPolynomial<GenPolynomial<C>> P,
                                                    GenPolynomial<GenPolynomial<C>> S)
Univariate GenPolynomial recursive greatest comon divisor. Uses pseudoRemainder for remainder.

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

gcd

public GenPolynomial<C> gcd(GenPolynomial<C> P,
                            GenPolynomial<C> S)
GenPolynomial greatest comon divisor. Main entry driver method.

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