|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.jas.poly.Quotient<C>
public class Quotient<C extends RingElem<C>>
Quotient element based on RingElem pairs. Objects of this class are immutable.
| Field Summary | |
|---|---|
C |
den
Denominator part of the element data structure. |
C |
num
Numerator part of the element data structure. |
QuotientRing<C> |
ring
Quotient class factory data structure. |
| Constructor Summary | |
|---|---|
|
Quotient(QuotientRing<C> r)
The constructor creates a Quotient object from a ring factory. |
|
Quotient(QuotientRing<C> r,
C n)
The constructor creates a Quotient object from a ring factory and a numerator element. |
|
Quotient(QuotientRing<C> r,
C n,
C d)
The constructor creates a Quotient object from a ring factory and a numerator and denominator element. |
protected |
Quotient(QuotientRing<C> r,
C n,
C d,
boolean isred)
The constructor creates a Quotient object from a ring factory and a numerator and denominator element. |
| Method Summary | |
|---|---|
Quotient<C> |
abs()
Quotient absolute value. |
Quotient<C> |
clone()
Clone this. |
int |
compareTo(Quotient<C> b)
Quotient comparison. |
Quotient<C> |
divide(Quotient<C> S)
Quotient division. |
Quotient<C>[] |
egcd(Quotient<C> b)
Extended greatest common divisor. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
QuotientRing<C> |
factory()
Get the corresponding element factory. |
Quotient<C> |
gcd(Quotient<C> b)
Greatest common divisor. |
int |
hashCode()
Hash code for this local. |
Quotient<C> |
inverse()
Quotient inverse. |
boolean |
isONE()
Is Quotient one. |
boolean |
isUnit()
Is Quotient unit. |
boolean |
isZERO()
Is Quotient zero. |
Quotient<C> |
monic()
Quotient monic. |
Quotient<C> |
multiply(Quotient<C> S)
Quotient multiplication. |
Quotient<C> |
negate()
Quotient negate. |
Quotient<C> |
remainder(Quotient<C> S)
Quotient remainder. |
int |
signum()
Quotient signum. |
Quotient<C> |
subtract(Quotient<C> S)
Quotient subtraction. |
Quotient<C> |
sum(Quotient<C> S)
Quotient 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 QuotientRing<C extends RingElem<C>> ring
public final C extends RingElem<C> num
public final C extends RingElem<C> den
| Constructor Detail |
|---|
public Quotient(QuotientRing<C> r)
r - ring factory.
public Quotient(QuotientRing<C> r,
C n)
r - ring factory.n - numerator.
public Quotient(QuotientRing<C> r,
C n,
C d)
r - ring factory.n - numerator.d - denominator.
protected Quotient(QuotientRing<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 QuotientRing<C> factory()
factory in interface Element<Quotient<C extends RingElem<C>>>Element.factory()public Quotient<C> clone()
clone in class java.lang.ObjectObject.clone()public boolean isZERO()
isZERO in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>AbelianGroupElem.isZERO()public boolean isONE()
isONE in interface MonoidElem<Quotient<C extends RingElem<C>>>MonoidElem.isONE()public boolean isUnit()
isUnit in interface MonoidElem<Quotient<C extends RingElem<C>>>MonoidElem.isUnit()public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
toScript in interface Element<Quotient<C extends RingElem<C>>>Element.toScript()public java.lang.String toScriptFactory()
toScriptFactory in interface Element<Quotient<C extends RingElem<C>>>Element.toScriptFactory()public int compareTo(Quotient<C> b)
compareTo in interface Element<Quotient<C extends RingElem<C>>>compareTo in interface java.lang.Comparable<Quotient<C extends RingElem<C>>>b - Quotient.
public boolean equals(java.lang.Object b)
equals in interface Element<Quotient<C extends RingElem<C>>>equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in interface Element<Quotient<C extends RingElem<C>>>hashCode in class java.lang.ObjectObject.hashCode()public Quotient<C> abs()
abs in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>AbelianGroupElem.abs()public Quotient<C> sum(Quotient<C> S)
sum in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>S - Quotient.
public Quotient<C> negate()
negate in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>AbelianGroupElem.negate()public int signum()
signum in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>AbelianGroupElem.signum()public Quotient<C> subtract(Quotient<C> S)
subtract in interface AbelianGroupElem<Quotient<C extends RingElem<C>>>S - Quotient.
public Quotient<C> divide(Quotient<C> S)
divide in interface MonoidElem<Quotient<C extends RingElem<C>>>S - Quotient.
public Quotient<C> inverse()
inverse in interface MonoidElem<Quotient<C extends RingElem<C>>>MonoidElem.inverse()public Quotient<C> remainder(Quotient<C> S)
remainder in interface MonoidElem<Quotient<C extends RingElem<C>>>S - Quotient.
public Quotient<C> multiply(Quotient<C> S)
multiply in interface MonoidElem<Quotient<C extends RingElem<C>>>S - Quotient.
public Quotient<C> monic()
public Quotient<C> gcd(Quotient<C> b)
gcd in interface RingElem<Quotient<C extends RingElem<C>>>b - other element.
public Quotient<C>[] egcd(Quotient<C> b)
egcd in interface RingElem<Quotient<C extends RingElem<C>>>b - other element.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||