|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.ufd.FactorFactory
edu.jas.application.FactorFactory
public class FactorFactory
Factorization algorithms factory. Select appropriate factorization engine based on the coefficient types.
Factorization.factors(edu.jas.poly.GenPolynomial P),
FactorFactory.getImplementation(edu.jas.structure.RingFactory
P)Factorization
interface use the FactorFactory. It will select an
appropriate implementation based on the types of polynomial
coefficients C. To obtain an implementation use
getImplementation(), it returns an object of a class
which extends the FactorAbstract class which implements
the Factorization interface.
Factorization<CT> engine; engine = FactorFactory.<CT> getImplementation(cofac); c = engine.factors(a);For example, if the coefficient type is BigInteger, the usage looks like
BigInteger cofac = new BigInteger(); Factorization<BigInteger> engine; engine = FactorFactory.getImplementation(cofac); Sm = engine.factors(poly);
| Constructor Summary | |
|---|---|
protected |
FactorFactory()
Protected factory constructor. |
| Method Summary | ||
|---|---|---|
static
|
getImplementation(RealAlgebraicRing<C> fac)
Determine suitable implementation of factorization algorithms, case RealAlgebraicNumber<C>. |
|
static
|
getImplementation(RingFactory<C> fac)
Determine suitable implementation of factorization algorithms, other cases. |
|
| Methods inherited from class edu.jas.ufd.FactorFactory |
|---|
getImplementation, getImplementation, getImplementation, getImplementation, getImplementation, getImplementation, getImplementation, getImplementation, getImplementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected FactorFactory()
| Method Detail |
|---|
public static <C extends GcdRingElem<C> & Rational> FactorAbstract<RealAlgebraicNumber<C>> getImplementation(RealAlgebraicRing<C> fac)
C - coefficient type, e.g. BigRational.fac - RealAlgebraicRing<C>.
public static <C extends GcdRingElem<C>> FactorAbstract<C> getImplementation(RingFactory<C> fac)
C - coefficient typefac - RingFactory<C>.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||