|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.poly.Local<C>
public class Local<C extends RingElem<C>>
Local element based on RingElem pairs. Objects of this class are (nearly) immutable.
Field Summary | |
---|---|
protected C |
den
Denominator part of the element data structure. |
protected int |
isunit
Flag to remember if this local element is a unit |
protected C |
num
Numerator part of the element data structure. |
protected LocalRing<C> |
ring
Local class factory data structure. |
Constructor Summary | |
---|---|
|
Local(LocalRing<C> r)
The constructor creates a Local object from a ring factory. |
|
Local(LocalRing<C> r,
C n)
The constructor creates a Local object from a ring factory and a numerator element. |
|
Local(LocalRing<C> r,
C n,
C d)
The constructor creates a Local object from a ring factory and a numerator and denominator element. |
protected |
Local(LocalRing<C> r,
C n,
C d,
boolean isred)
The constructor creates a Local object from a ring factory and a numerator and denominator element. |
Method Summary | |
---|---|
Local<C> |
abs()
Local absolute value. |
Local<C> |
clone()
Clone this. |
int |
compareTo(Local<C> b)
Local comparison. |
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 |
isONE()
Is Local one. |
boolean |
isUnit()
Is Local unit. |
boolean |
isZERO()
Is Local zero. |
Local<C> |
multiply(Local<C> S)
Local multiplication. |
Local<C> |
negate()
Local negate. |
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. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected final LocalRing<C extends RingElem<C>> ring
protected final C extends RingElem<C> num
protected final C extends RingElem<C> den
protected int isunit
Constructor Detail |
---|
public Local(LocalRing<C> r)
r
- ring factory.public Local(LocalRing<C> r, C n)
r
- ring factory.n
- numerator.public Local(LocalRing<C> r, C n, C d)
r
- ring factory.n
- numerator.d
- denominator.protected Local(LocalRing<C> r, C n, C d, boolean isred)
r
- ring factory.n
- numerator.d
- denominator.isred
- true if gcd(n,d) == 1, else false.Method Detail |
---|
public LocalRing<C> factory()
factory
in interface Element<Local<C extends RingElem<C>>>
Element.factory()
public Local<C> clone()
clone
in class java.lang.Object
Object.clone()
public boolean isZERO()
isZERO
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
AbelianGroupElem.isZERO()
public boolean isONE()
isONE
in interface MonoidElem<Local<C extends RingElem<C>>>
MonoidElem.isONE()
public boolean isUnit()
isUnit
in interface MonoidElem<Local<C extends RingElem<C>>>
MonoidElem.isUnit()
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 RingElem<C>>>
Element.toScript()
public java.lang.String toScriptFactory()
toScriptFactory
in interface Element<Local<C extends RingElem<C>>>
Element.toScriptFactory()
public int compareTo(Local<C> b)
compareTo
in interface Element<Local<C extends RingElem<C>>>
compareTo
in interface java.lang.Comparable<Local<C extends RingElem<C>>>
b
- Local.
public boolean equals(java.lang.Object b)
equals
in interface Element<Local<C extends RingElem<C>>>
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in interface Element<Local<C extends RingElem<C>>>
hashCode
in class java.lang.Object
Object.hashCode()
public Local<C> abs()
abs
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
AbelianGroupElem.abs()
public Local<C> sum(Local<C> S)
sum
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
S
- Local.
public Local<C> negate()
negate
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
AbelianGroupElem.negate()
public int signum()
signum
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
AbelianGroupElem.signum()
public Local<C> subtract(Local<C> S)
subtract
in interface AbelianGroupElem<Local<C extends RingElem<C>>>
S
- Local.
public Local<C> divide(Local<C> S)
divide
in interface MonoidElem<Local<C extends RingElem<C>>>
S
- Local.
public Local<C> inverse()
inverse
in interface MonoidElem<Local<C extends RingElem<C>>>
MonoidElem.inverse()
public Local<C> remainder(Local<C> S)
remainder
in interface MonoidElem<Local<C extends RingElem<C>>>
S
- Local.
public Local<C> multiply(Local<C> S)
multiply
in interface MonoidElem<Local<C extends RingElem<C>>>
S
- Local.
public Local<C> gcd(Local<C> b)
gcd
in interface RingElem<Local<C extends RingElem<C>>>
b
- other element.
public Local<C>[] egcd(Local<C> b)
egcd
in interface RingElem<Local<C extends RingElem<C>>>
b
- other element.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |