public class WordResidueRing<C extends GcdRingElem<C>> extends java.lang.Object implements RingFactory<WordResidue<C>>, QuotPairFactory<GenWordPolynomial<C>,WordResidue<C>>, ValueFactory<GenWordPolynomial<C>,WordResidue<C>>
| Modifier and Type | Field and Description |
|---|---|
protected WordGroebnerBaseAbstract<C> |
bb
Groebner base engine.
|
WordIdeal<C> |
ideal
Word polynomial ideal for the reduction.
|
protected int |
isField
Indicator if this ring is a field.
|
GenWordPolynomialRing<C> |
ring
Polynomial ring of the factory.
|
| Constructor and Description |
|---|
WordResidueRing(WordIdeal<C> i)
The constructor creates a WordResidueRing object from an Ideal.
|
WordResidueRing(WordIdeal<C> i,
boolean isMaximal)
The constructor creates a WordResidueRing object from an WordIdeal.
|
| Modifier and Type | Method and Description |
|---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring.
|
WordResidue<C> |
copy(WordResidue<C> c)
Copy WordResidue element c.
|
WordResidue<C> |
create(GenWordPolynomial<C> n)
Create from numerator.
|
WordResidue<C> |
create(GenWordPolynomial<C> n,
GenWordPolynomial<C> d)
Create from numerator, denominator pair.
|
boolean |
equals(java.lang.Object b)
Comparison with any other object.
|
WordResidue<C> |
fromInteger(java.math.BigInteger a)
Get a WordResidue element from a BigInteger value.
|
WordResidue<C> |
fromInteger(long a)
Get a WordResidue element from a long value.
|
java.util.List<WordResidue<C>> |
generators()
Get a list of the generating elements.
|
WordResidue<C> |
getONE()
Get the one element.
|
WordResidue<C> |
getZERO()
Get the zero element.
|
int |
hashCode()
Hash code for this residue ring.
|
boolean |
isAssociative()
Query if this ring is associative.
|
boolean |
isCommutative()
Query if this ring is commutative.
|
boolean |
isField()
Query if this ring is a field.
|
boolean |
isFinite()
Is this structure finite or infinite.
|
GenWordPolynomialRing<C> |
pairFactory()
Factory for base elements.
|
WordResidue<C> |
parse(java.io.Reader r)
Parse WordResidue from Reader.
|
WordResidue<C> |
parse(java.lang.String s)
Parse WordResidue from String.
|
WordResidue<C> |
random(int n)
WordResidue random.
|
WordResidue<C> |
random(int k,
int l,
int d)
Generate a random residum polynomial.
|
WordResidue<C> |
random(int n,
java.util.Random rnd)
WordResidue random.
|
java.lang.String |
toScript()
Get a scripting compatible string representation.
|
java.lang.String |
toString()
Get the String representation as RingFactory.
|
GenWordPolynomialRing<C> |
valueFactory()
Factory for base elements.
|
protected final WordGroebnerBaseAbstract<C extends GcdRingElem<C>> bb
public final WordIdeal<C extends GcdRingElem<C>> ideal
public final GenWordPolynomialRing<C extends GcdRingElem<C>> ring
protected int isField
public WordResidueRing(WordIdeal<C> i)
i - polynomial ideal.public WordResidueRing(WordIdeal<C> i, boolean isMaximal)
i - solvable polynomial ideal.isMaximal - true, if ideal is maxmal.public GenWordPolynomialRing<C> pairFactory()
pairFactory in interface QuotPairFactory<GenWordPolynomial<C extends GcdRingElem<C>>,WordResidue<C extends GcdRingElem<C>>>public GenWordPolynomialRing<C> valueFactory()
valueFactory in interface ValueFactory<GenWordPolynomial<C extends GcdRingElem<C>>,WordResidue<C extends GcdRingElem<C>>>public WordResidue<C> create(GenWordPolynomial<C> n)
create in interface QuotPairFactory<GenWordPolynomial<C extends GcdRingElem<C>>,WordResidue<C extends GcdRingElem<C>>>create in interface ValueFactory<GenWordPolynomial<C extends GcdRingElem<C>>,WordResidue<C extends GcdRingElem<C>>>public WordResidue<C> create(GenWordPolynomial<C> n, GenWordPolynomial<C> d)
create in interface QuotPairFactory<GenWordPolynomial<C extends GcdRingElem<C>>,WordResidue<C extends GcdRingElem<C>>>public boolean isFinite()
isFinite in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>ElemFactory.isFinite()public WordResidue<C> copy(WordResidue<C> c)
copy in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>c - public WordResidue<C> getZERO()
getZERO in interface AbelianGroupFactory<WordResidue<C extends GcdRingElem<C>>>public WordResidue<C> getONE()
getONE in interface MonoidFactory<WordResidue<C extends GcdRingElem<C>>>public java.util.List<WordResidue<C>> generators()
generators in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>ElemFactory.generators()public boolean isCommutative()
isCommutative in interface MonoidFactory<WordResidue<C extends GcdRingElem<C>>>public boolean isAssociative()
isAssociative in interface MonoidFactory<WordResidue<C extends GcdRingElem<C>>>public boolean isField()
isField in interface RingFactory<WordResidue<C extends GcdRingElem<C>>>public java.math.BigInteger characteristic()
characteristic in interface RingFactory<WordResidue<C extends GcdRingElem<C>>>public WordResidue<C> fromInteger(java.math.BigInteger a)
fromInteger in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>a - BigInteger.public WordResidue<C> fromInteger(long a)
fromInteger in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>a - long.public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public java.lang.String toScript()
toScript in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>ElemFactory.toScript()public boolean equals(java.lang.Object b)
equals in class java.lang.ObjectObject.equals(java.lang.Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public WordResidue<C> random(int n)
random in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>n - such that 0 ≤ v ≤ (2n-1).public WordResidue<C> random(int k, int l, int d)
k - bitsize of random coefficients.l - number of terms.d - maximal degree in each variable.public WordResidue<C> random(int n, java.util.Random rnd)
random in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>n - such that 0 ≤ v ≤ (2n-1).rnd - is a source for random bits.public WordResidue<C> parse(java.lang.String s)
parse in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>s - String.public WordResidue<C> parse(java.io.Reader r)
parse in interface ElemFactory<WordResidue<C extends GcdRingElem<C>>>r - Reader.