public class FactorFraction<C extends GcdRingElem<C>,D extends GcdRingElem<D> & QuotPair<GenPolynomial<C>>> extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected FactorAbstract<C> |
nengine
Factorization engine for normal coefficients.
|
protected QuotPairFactory<GenPolynomial<C>,D> |
qfac
Quotient pairs ring factory.
|
Modifier | Constructor and Description |
---|---|
protected |
FactorFraction()
No argument constructor.
|
|
FactorFraction(QuotPairFactory<GenPolynomial<C>,D> fac)
Constructor.
|
|
FactorFraction(QuotPairFactory<GenPolynomial<C>,D> fac,
FactorAbstract<C> nengine)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.SortedMap<D,java.lang.Long> |
factors(D P)
Quotient pair factorization.
|
boolean |
isFactorization(D P,
java.util.SortedMap<D,java.lang.Long> F)
Test quotient pair factorization.
|
boolean |
isIrreducible(D P)
Test if a quotient pair is irreducible.
|
boolean |
isReducible(D P)
Test if a non trivial factorization exsists.
|
java.lang.String |
toString()
Get the String representation.
|
protected final QuotPairFactory<GenPolynomial<C extends GcdRingElem<C>>,D extends GcdRingElem<D> & QuotPair<GenPolynomial<C>>> qfac
protected final FactorAbstract<C extends GcdRingElem<C>> nengine
protected FactorFraction()
public FactorFraction(QuotPairFactory<GenPolynomial<C>,D> fac)
fac
- coefficient quotient ring factory.public FactorFraction(QuotPairFactory<GenPolynomial<C>,D> fac, FactorAbstract<C> nengine)
fac
- coefficient quotient ring factory.nengine
- factorization engine for polynomials over base
coefficients.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean isIrreducible(D P)
P
- quotient pair (num,den), with gcd(num,den) == 1.public boolean isReducible(D P)
P
- quotient pair (num,den), with gcd(num,den) == 1.public java.util.SortedMap<D,java.lang.Long> factors(D P)
P
- quotient pair (num,den), with gcd(num,den) == 1.public boolean isFactorization(D P, java.util.SortedMap<D,java.lang.Long> F)
P
- quotient pair.F
- = [p_1 -> e_1, ..., p_k -> e_k].