public class SolvableLocalResidue<C extends GcdRingElem<C>> extends java.lang.Object implements GcdRingElem<SolvableLocalResidue<C>>, QuotPair<GenPolynomial<C>>
Modifier and Type | Field and Description |
---|---|
GenSolvablePolynomial<C> |
den
Denominator part of the element data structure.
|
GenSolvablePolynomial<C> |
num
Numerator part of the element data structure.
|
SolvableLocalResidueRing<C> |
ring
SolvableLocalResidue class factory data structure.
|
Modifier | Constructor and Description |
---|---|
|
SolvableLocalResidue(SolvableLocalResidueRing<C> r)
The constructor creates a SolvableLocalResidue object from a ring
factory.
|
|
SolvableLocalResidue(SolvableLocalResidueRing<C> r,
GenSolvablePolynomial<C> n)
The constructor creates a SolvableLocalResidue object from a ring factory
and a numerator polynomial.
|
|
SolvableLocalResidue(SolvableLocalResidueRing<C> r,
GenSolvablePolynomial<C> n,
GenSolvablePolynomial<C> d)
The constructor creates a SolvableLocalResidue object from a ring factory
and a numerator and denominator solvable polynomial.
|
protected |
SolvableLocalResidue(SolvableLocalResidueRing<C> r,
GenSolvablePolynomial<C> n,
GenSolvablePolynomial<C> d,
boolean isred)
The constructor creates a SolvableLocalResidue object from a ring factory
and a numerator and denominator polynomial.
|
Modifier and Type | Method and Description |
---|---|
SolvableLocalResidue<C> |
abs()
SolvableLocalResidue absolute value.
|
int |
compareTo(SolvableLocalResidue<C> b)
SolvableLocalResidue comparison.
|
SolvableLocalResidue<C> |
copy()
Clone this.
|
GenSolvablePolynomial<C> |
denominator()
Denominator.
|
SolvableLocalResidue<C> |
divide(SolvableLocalResidue<C> S)
SolvableLocalResidue division.
|
SolvableLocalResidue<C>[] |
egcd(SolvableLocalResidue<C> b)
Extended greatest common divisor.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
SolvableLocalResidueRing<C> |
factory()
Get the corresponding element factory.
|
SolvableLocalResidue<C> |
gcd(SolvableLocalResidue<C> b)
Greatest common divisor.
|
int |
hashCode()
Hash code for this element.
|
SolvableLocalResidue<C> |
inverse()
SolvableLocalResidue inverse.
|
boolean |
isConstant()
Is Quotient a constant.
|
boolean |
isONE()
Is SolvableLocalResidue one.
|
boolean |
isUnit()
Is SolvableLocalResidue a unit.
|
boolean |
isZERO()
Is SolvableLocalResidue zero.
|
SolvableLocalResidue<C> |
monic()
SolvableLocalResidue monic.
|
SolvableLocalResidue<C> |
multiply(C b)
SolvableLocalResidue multiplication by coefficient.
|
SolvableLocalResidue<C> |
multiply(ExpVector e)
SolvableLocalResidue multiplication by exponent.
|
SolvableLocalResidue<C> |
multiply(GenSolvablePolynomial<C> b)
SolvableLocalResidue multiplication by GenSolvablePolynomial.
|
SolvableLocalResidue<C> |
multiply(SolvableLocalResidue<C> S)
SolvableLocalResidue multiplication.
|
SolvableLocalResidue<C> |
negate()
SolvableLocalResidue negate.
|
GenSolvablePolynomial<C> |
numerator()
Numerator.
|
SolvableLocalResidue<C> |
remainder(SolvableLocalResidue<C> S)
SolvableLocalResidue remainder.
|
int |
signum()
SolvableLocalResidue signum.
|
SolvableLocalResidue<C> |
subtract(SolvableLocalResidue<C> S)
SolvableLocalResidue subtraction.
|
SolvableLocalResidue<C> |
sum(SolvableLocalResidue<C> S)
SolvableLocalResidue summation.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toScriptFactory()
Get a scripting compatible string representation of the factory.
|
java.lang.String |
toString()
Get the String representation as RingElem.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
leftDivide, leftRemainder, power, quotientRemainder, rightDivide, rightRemainder, twosidedDivide, twosidedRemainder
public final SolvableLocalResidueRing<C extends GcdRingElem<C>> ring
public final GenSolvablePolynomial<C extends GcdRingElem<C>> num
public final GenSolvablePolynomial<C extends GcdRingElem<C>> den
public SolvableLocalResidue(SolvableLocalResidueRing<C> r)
r
- ring factory.public SolvableLocalResidue(SolvableLocalResidueRing<C> r, GenSolvablePolynomial<C> n)
r
- ring factory.n
- numerator solvable polynomial.public SolvableLocalResidue(SolvableLocalResidueRing<C> r, GenSolvablePolynomial<C> n, GenSolvablePolynomial<C> d)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.protected SolvableLocalResidue(SolvableLocalResidueRing<C> r, GenSolvablePolynomial<C> n, GenSolvablePolynomial<C> d, boolean isred)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.isred
- unused at the moment.public SolvableLocalResidueRing<C> factory()
factory
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
Element.factory()
public GenSolvablePolynomial<C> numerator()
numerator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.numerator()
public GenSolvablePolynomial<C> denominator()
denominator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.denominator()
public SolvableLocalResidue<C> copy()
copy
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
Object.clone()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
MonoidElem.isUnit()
public boolean isConstant()
isConstant
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
Element.toScriptFactory()
public int compareTo(SolvableLocalResidue<C> b)
compareTo
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
compareTo
in interface java.lang.Comparable<SolvableLocalResidue<C extends GcdRingElem<C>>>
b
- SolvableLocalResidue.public boolean equals(java.lang.Object b)
equals
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<SolvableLocalResidue<C extends GcdRingElem<C>>>
hashCode
in class java.lang.Object
Object.hashCode()
public SolvableLocalResidue<C> abs()
abs
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
AbelianGroupElem.abs()
public SolvableLocalResidue<C> sum(SolvableLocalResidue<C> S)
sum
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
S
- SolvableLocalResidue.public SolvableLocalResidue<C> negate()
negate
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
AbelianGroupElem.signum()
public SolvableLocalResidue<C> subtract(SolvableLocalResidue<C> S)
subtract
in interface AbelianGroupElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
S
- SolvableLocalResidue.public SolvableLocalResidue<C> divide(SolvableLocalResidue<C> S)
divide
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
S
- SolvableLocalResidue.public SolvableLocalResidue<C> inverse()
inverse
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
MonoidElem.inverse()
public SolvableLocalResidue<C> remainder(SolvableLocalResidue<C> S)
remainder
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
S
- SolvableLocalResidue.public SolvableLocalResidue<C> multiply(SolvableLocalResidue<C> S)
multiply
in interface MonoidElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
S
- SolvableLocalResidue.public SolvableLocalResidue<C> multiply(GenSolvablePolynomial<C> b)
b
- GenSolvablePolynomialpublic SolvableLocalResidue<C> multiply(C b)
b
- coefficient.public SolvableLocalResidue<C> multiply(ExpVector e)
e
- exponent vector.public SolvableLocalResidue<C> monic()
public SolvableLocalResidue<C> gcd(SolvableLocalResidue<C> b)
gcd
in interface RingElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
b
- other element.public SolvableLocalResidue<C>[] egcd(SolvableLocalResidue<C> b)
egcd
in interface RingElem<SolvableLocalResidue<C extends GcdRingElem<C>>>
b
- other element.