|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jas.poly.ComplexRing<C>
C
- base type.public class ComplexRing<C extends RingElem<C>>
Generic Complex ring factory implementing the RingFactory interface. Objects of this class are immutable.
Field Summary | |
---|---|
RingFactory<C> |
ring
Complex class elements factory data structure. |
Constructor Summary | |
---|---|
ComplexRing(RingFactory<C> ring)
The constructor creates a ComplexRing object. |
Method Summary | |
---|---|
java.math.BigInteger |
characteristic()
Characteristic of this ring. |
Complex<C> |
copy(Complex<C> c)
Copy Complex element c. |
boolean |
equals(java.lang.Object b)
Comparison with any other object. |
Complex<C> |
fromInteger(java.math.BigInteger a)
Get a Complex element from a BigInteger. |
Complex<C> |
fromInteger(long a)
Get a Complex element from a long. |
java.util.List<Complex<C>> |
generators()
Get a list of the generating elements. |
Complex<C> |
getIMAG()
Get the i element. |
Complex<C> |
getONE()
Get the one element. |
Complex<C> |
getZERO()
Get the zero element. |
int |
hashCode()
Hash code for this ComplexRing<C>. |
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. |
Complex<C> |
parse(java.io.Reader r)
Parse complex number from Reader. |
Complex<C> |
parse(java.lang.String s)
Parse complex number from string. |
Complex<C> |
random(int n)
Complex number random. |
Complex<C> |
random(int n,
java.util.Random rnd)
Complex number random. |
java.lang.String |
toScript()
Get a scripting compatible string representation. |
java.lang.String |
toString()
Get the String representation. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public final RingFactory<C extends RingElem<C>> ring
Constructor Detail |
---|
public ComplexRing(RingFactory<C> ring)
ring
- factory for Complex real and imaginary parts.Method Detail |
---|
public java.util.List<Complex<C>> generators()
generators
in interface ElemFactory<Complex<C extends RingElem<C>>>
ElemFactory.generators()
public boolean isFinite()
isFinite
in interface ElemFactory<Complex<C extends RingElem<C>>>
ElemFactory.isFinite()
public Complex<C> copy(Complex<C> c)
copy
in interface ElemFactory<Complex<C extends RingElem<C>>>
c
- Complex<C>.
public Complex<C> getZERO()
getZERO
in interface AbelianGroupFactory<Complex<C extends RingElem<C>>>
public Complex<C> getONE()
getONE
in interface MonoidFactory<Complex<C extends RingElem<C>>>
public Complex<C> getIMAG()
public boolean isCommutative()
isCommutative
in interface MonoidFactory<Complex<C extends RingElem<C>>>
public boolean isAssociative()
isAssociative
in interface MonoidFactory<Complex<C extends RingElem<C>>>
public boolean isField()
isField
in interface RingFactory<Complex<C extends RingElem<C>>>
public java.math.BigInteger characteristic()
characteristic
in interface RingFactory<Complex<C extends RingElem<C>>>
public Complex<C> fromInteger(java.math.BigInteger a)
fromInteger
in interface ElemFactory<Complex<C extends RingElem<C>>>
a
- BigInteger.
public Complex<C> fromInteger(long a)
fromInteger
in interface ElemFactory<Complex<C extends RingElem<C>>>
a
- long.
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toScript()
toScript
in interface ElemFactory<Complex<C extends RingElem<C>>>
Element.toScript()
public boolean equals(java.lang.Object b)
equals
in class java.lang.Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public Complex<C> random(int n)
random
in interface ElemFactory<Complex<C extends RingElem<C>>>
n
- such that 0 ≤ A, B ≤ (2n-1).
public Complex<C> random(int n, java.util.Random rnd)
random
in interface ElemFactory<Complex<C extends RingElem<C>>>
n
- such that 0 ≤ A, B ≤ (2n-1).rnd
- is a source for random bits.
public Complex<C> parse(java.lang.String s)
parse
in interface ElemFactory<Complex<C extends RingElem<C>>>
s
- String.
public Complex<C> parse(java.io.Reader r)
parse
in interface ElemFactory<Complex<C extends RingElem<C>>>
r
- Reader.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |