|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.application.Residue<C>
public class Residue<C extends GcdRingElem<C>>
Residue ring element based on GenPolynomial with RingElem interface. Objects of this class are (nearly) immutable.
Field Summary | |
---|---|
protected int |
isunit
Flag to remember if this residue element is a unit |
ResidueRing<C> |
ring
Residue class factory data structure. |
GenPolynomial<C> |
val
Value part of the element data structure. |
Constructor Summary | |
---|---|
Residue(ResidueRing<C> r)
The constructor creates a Residue object from a ring factory. |
|
Residue(ResidueRing<C> r,
GenPolynomial<C> a)
The constructor creates a Residue object from a ring factory and a polynomial. |
|
Residue(ResidueRing<C> r,
GenPolynomial<C> a,
int u)
The constructor creates a Residue object from a ring factory, a polynomial and an indicator if a is a unit. |
Method Summary | |
---|---|
Residue<C> |
abs()
Residue absolute value. |
Residue<C> |
clone()
Clone this. |
int |
compareTo(Residue<C> b)
Residue comparison. |
Residue<C> |
divide(Residue<C> S)
Residue division. |
Residue<C>[] |
egcd(Residue<C> b)
Extended greatest common divisor. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
ResidueRing<C> |
factory()
Get the corresponding element factory. |
Residue<C> |
gcd(Residue<C> b)
Greatest common divisor. |
int |
hashCode()
Hash code for this local. |
Residue<C> |
inverse()
Residue inverse. |
boolean |
isConstant()
Is Residue a constant. |
boolean |
isONE()
Is Residue one. |
boolean |
isUnit()
Is Residue unit. |
boolean |
isZERO()
Is Residue zero. |
Residue<C> |
monic()
Residue monic. |
Residue<C> |
multiply(Residue<C> S)
Residue multiplication. |
Residue<C> |
negate()
Residue negate. |
Residue<C> |
remainder(Residue<C> S)
Residue remainder. |
int |
signum()
Residue signum. |
Residue<C> |
subtract(Residue<C> S)
Residue subtraction. |
Residue<C> |
sum(Residue<C> S)
Residue 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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final ResidueRing<C extends GcdRingElem<C>> ring
public final GenPolynomial<C extends GcdRingElem<C>> val
protected int isunit
Constructor Detail |
---|
public Residue(ResidueRing<C> r)
r
- ring factory.public Residue(ResidueRing<C> r, GenPolynomial<C> a)
r
- ring factory.a
- polynomial list.public Residue(ResidueRing<C> r, GenPolynomial<C> a, int u)
r
- ring factory.a
- polynomial list.u
- isunit indicator, -1, 0, 1.Method Detail |
---|
public ResidueRing<C> factory()
factory
in interface Element<Residue<C extends GcdRingElem<C>>>
Element.factory()
public Residue<C> clone()
clone
in class java.lang.Object
Object.clone()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
MonoidElem.isUnit()
public boolean isConstant()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public java.lang.String toScript()
toScript
in interface Element<Residue<C extends GcdRingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<Residue<C extends GcdRingElem<C>>>
Element.toScriptFactory()
public int compareTo(Residue<C> b)
compareTo
in interface Element<Residue<C extends GcdRingElem<C>>>
compareTo
in interface java.lang.Comparable<Residue<C extends GcdRingElem<C>>>
b
- Residue.
public boolean equals(java.lang.Object b)
equals
in interface Element<Residue<C extends GcdRingElem<C>>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<Residue<C extends GcdRingElem<C>>>
hashCode
in class java.lang.Object
Object.hashCode()
public Residue<C> abs()
abs
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
AbelianGroupElem.abs()
public Residue<C> sum(Residue<C> S)
sum
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
S
- Residue.
public Residue<C> negate()
negate
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
AbelianGroupElem.signum()
public Residue<C> subtract(Residue<C> S)
subtract
in interface AbelianGroupElem<Residue<C extends GcdRingElem<C>>>
S
- Residue.
public Residue<C> divide(Residue<C> S)
divide
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
S
- Residue.
public Residue<C> inverse()
inverse
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
MonoidElem.inverse()
public Residue<C> remainder(Residue<C> S)
remainder
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
S
- Residue.
public Residue<C> multiply(Residue<C> S)
multiply
in interface MonoidElem<Residue<C extends GcdRingElem<C>>>
S
- Residue.
public Residue<C> monic()
public Residue<C> gcd(Residue<C> b)
gcd
in interface RingElem<Residue<C extends GcdRingElem<C>>>
b
- other element.
public Residue<C>[] egcd(Residue<C> b)
egcd
in interface RingElem<Residue<C extends GcdRingElem<C>>>
b
- other element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |