public class Local<C extends GcdRingElem<C>> extends java.lang.Object implements RingElem<Local<C>>, QuotPair<GenPolynomial<C>>
Modifier and Type | Field and Description |
---|---|
protected GenPolynomial<C> |
den
Denominator part of the element data structure.
|
protected int |
isunit
Flag to remember if this local element is a unit. -1 is unknown, 1 is
unit, 0 not a unit.
|
protected GenPolynomial<C> |
num
Numerator part of the element data structure.
|
LocalRing<C> |
ring
Local class factory data structure.
|
Modifier | Constructor and Description |
---|---|
|
Local(LocalRing<C> r)
The constructor creates a Local object from a ring factory.
|
|
Local(LocalRing<C> r,
GenPolynomial<C> n)
The constructor creates a Local object from a ring factory and a
numerator polynomial.
|
|
Local(LocalRing<C> r,
GenPolynomial<C> n,
GenPolynomial<C> d)
The constructor creates a Local object from a ring factory and a
numerator and denominator polynomial.
|
protected |
Local(LocalRing<C> r,
GenPolynomial<C> n,
GenPolynomial<C> d,
boolean isred)
The constructor creates a Local object from a ring factory and a
numerator and denominator polynomial.
|
Modifier and Type | Method and Description |
---|---|
Local<C> |
abs()
Local absolute value.
|
int |
compareTo(Local<C> b)
Local comparison.
|
Local<C> |
copy()
Clone this.
|
GenPolynomial<C> |
denominator()
Denominator.
|
Local<C> |
divide(Local<C> S)
Local division.
|
Local<C>[] |
egcd(Local<C> b)
Extended greatest common divisor.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
LocalRing<C> |
factory()
Get the corresponding element factory.
|
Local<C> |
gcd(Local<C> b)
Greatest common divisor.
|
int |
hashCode()
Hash code for this local.
|
Local<C> |
inverse()
Local inverse.
|
boolean |
isConstant()
Is Qoutient a constant.
|
boolean |
isONE()
Is Local one.
|
boolean |
isUnit()
Is Local unit.
|
boolean |
isZERO()
Is Local zero.
|
Local<C> |
monic()
Local monic.
|
Local<C> |
multiply(C b)
Local multiplication by coefficient.
|
Local<C> |
multiply(ExpVector e)
Local multiplication by exponent.
|
Local<C> |
multiply(GenPolynomial<C> b)
Local multiplication by GenPolynomial.
|
Local<C> |
multiply(Local<C> S)
Local multiplication.
|
Local<C> |
negate()
Local negate.
|
GenPolynomial<C> |
numerator()
Numerator.
|
Local<C> |
remainder(Local<C> S)
Local remainder.
|
int |
signum()
Local signum.
|
Local<C> |
subtract(Local<C> S)
Local subtraction.
|
Local<C> |
sum(Local<C> S)
Local 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 LocalRing<C extends GcdRingElem<C>> ring
protected final GenPolynomial<C extends GcdRingElem<C>> num
protected final GenPolynomial<C extends GcdRingElem<C>> den
protected int isunit
public Local(LocalRing<C> r)
r
- ring factory.public Local(LocalRing<C> r, GenPolynomial<C> n)
r
- ring factory.n
- numerator polynomial.public Local(LocalRing<C> r, GenPolynomial<C> n, GenPolynomial<C> d)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.protected Local(LocalRing<C> r, GenPolynomial<C> n, GenPolynomial<C> d, boolean isred)
r
- ring factory.n
- numerator polynomial.d
- denominator polynomial.isred
- true if gcd(n,d) == 1, else false.public LocalRing<C> factory()
factory
in interface Element<Local<C extends GcdRingElem<C>>>
Element.factory()
public GenPolynomial<C> numerator()
numerator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.numerator()
public GenPolynomial<C> denominator()
denominator
in interface QuotPair<GenPolynomial<C extends GcdRingElem<C>>>
QuotPair.denominator()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<Local<C extends GcdRingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<Local<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<Local<C extends GcdRingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<Local<C extends GcdRingElem<C>>>
Element.toScriptFactory()
public int compareTo(Local<C> b)
compareTo
in interface Element<Local<C extends GcdRingElem<C>>>
compareTo
in interface java.lang.Comparable<Local<C extends GcdRingElem<C>>>
b
- Local.public boolean equals(java.lang.Object b)
public int hashCode()
public Local<C> abs()
abs
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
AbelianGroupElem.abs()
public Local<C> sum(Local<C> S)
sum
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
S
- Local.public Local<C> negate()
negate
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
AbelianGroupElem.signum()
public Local<C> subtract(Local<C> S)
subtract
in interface AbelianGroupElem<Local<C extends GcdRingElem<C>>>
S
- Local.public Local<C> divide(Local<C> S)
divide
in interface MonoidElem<Local<C extends GcdRingElem<C>>>
S
- Local.public Local<C> inverse()
inverse
in interface MonoidElem<Local<C extends GcdRingElem<C>>>
MonoidElem.inverse()
public Local<C> remainder(Local<C> S)
remainder
in interface MonoidElem<Local<C extends GcdRingElem<C>>>
S
- Local.public Local<C> multiply(Local<C> S)
multiply
in interface MonoidElem<Local<C extends GcdRingElem<C>>>
S
- Local.public Local<C> multiply(GenPolynomial<C> b)
b
- GenPolynomial.public Local<C> multiply(C b)
b
- coefficient.public Local<C> multiply(ExpVector e)
e
- exponent vector.