public interface Squarefree<C extends GcdRingElem<C>> extends java.io.Serializable
Usage: To create objects that implement the Squarefree
interface use the SquarefreeFactory
. 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 SquarefreeAbstract
class
which implements the Squarefree
interface.
Squarefree<CT> engine; engine = SquarefreeFactory.<CT> getImplementation(cofac); c = engine.squarefreeFactors(a);
For example, if the coefficient type is BigInteger, the usage looks like
BigInteger cofac = new BigInteger(); Squarefree<BigInteger> engine; engine = SquarefreeFactory.getImplementation(cofac); Sm = engine.sqaurefreeFactors(poly);
SquarefreeFactory.getImplementation(edu.jas.arith.ModIntegerRing)
Modifier and Type | Method and Description |
---|---|
java.util.List<GenPolynomial<C>> |
coPrimeSquarefree(GenPolynomial<C> a,
java.util.List<GenPolynomial<C>> P)
GenPolynomial squarefree and co-prime list.
|
java.util.List<GenPolynomial<C>> |
coPrimeSquarefree(java.util.List<GenPolynomial<C>> A)
GenPolynomial squarefree and co-prime list.
|
boolean |
isCoPrimeSquarefree(java.util.List<GenPolynomial<C>> B)
Test if list of GenPolynomials is squarefree and co-prime.
|
boolean |
isFactorization(GenPolynomial<C> P,
java.util.List<GenPolynomial<C>> F)
GenPolynomial is (squarefree) factorization.
|
boolean |
isFactorization(GenPolynomial<C> P,
java.util.SortedMap<GenPolynomial<C>,java.lang.Long> F)
GenPolynomial is (squarefree) factorization.
|
boolean |
isSquarefree(GenPolynomial<C> P)
GenPolynomial test if is squarefree.
|
boolean |
isSquarefree(java.util.List<GenPolynomial<C>> L)
GenPolynomial list test if squarefree.
|
java.util.SortedMap<GenPolynomial<C>,java.lang.Long> |
squarefreeFactors(GenPolynomial<C> P)
GenPolynomial squarefree factorization.
|
GenPolynomial<C> |
squarefreePart(GenPolynomial<C> P)
GenPolynomial greatest squarefree divisor.
|
GenPolynomial<C> squarefreePart(GenPolynomial<C> P)
P
- GenPolynomial.boolean isSquarefree(GenPolynomial<C> P)
P
- GenPolynomial.boolean isSquarefree(java.util.List<GenPolynomial<C>> L)
L
- list of GenPolynomial.java.util.SortedMap<GenPolynomial<C>,java.lang.Long> squarefreeFactors(GenPolynomial<C> P)
P
- GenPolynomial.boolean isFactorization(GenPolynomial<C> P, java.util.List<GenPolynomial<C>> F)
P
- GenPolynomial.F
- = [p_1,...,p_k].boolean isFactorization(GenPolynomial<C> P, java.util.SortedMap<GenPolynomial<C>,java.lang.Long> F)
P
- GenPolynomial.F
- = [p_1 -> e_1, ..., p_k -> e_k].java.util.List<GenPolynomial<C>> coPrimeSquarefree(java.util.List<GenPolynomial<C>> A)
A
- list of GenPolynomials.java.util.List<GenPolynomial<C>> coPrimeSquarefree(GenPolynomial<C> a, java.util.List<GenPolynomial<C>> P)
a
- polynomial.P
- squarefree co-prime list of GenPolynomials.boolean isCoPrimeSquarefree(java.util.List<GenPolynomial<C>> B)
B
- list of GenPolynomials.