|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.rubato.math.module.Ring
org.rubato.math.module.NumberRing
org.rubato.math.module.CRing
public final class CRing
The field of complex numbers.
CElement
,
Serialized FormField Summary | |
---|---|
static CRing |
ring
The unique instance of the ring of complex numbers. |
Method Summary | |
---|---|
CElement |
cast(CElement element)
|
CElement |
cast(ModuleElement element)
Casts element to an element in this module if possible. |
CElement |
cast(QElement element)
|
CElement |
cast(RElement element)
|
CElement |
cast(ZElement element)
|
CElement |
cast(ZnElement element)
|
int |
compareTo(Module object)
Compares this module with object . |
CElement |
createElement(java.util.List<ModuleElement> elements)
Creates an element in this module from a list of module elements. |
boolean |
equals(java.lang.Object object)
Returns true iff this module is equals to object . |
Module |
fromXML(XMLReader reader,
org.w3c.dom.Element element)
Reads XML representation from reader starting with element . |
java.lang.String |
getElementTypeName()
Returns the value of the type attribute for this class. |
CFreeModule |
getFreeModule(int dimension)
Returns the corresponding free module of dimension dim . |
ModuleMorphism |
getIdentityMorphism()
Returns the identity morphism in this module. |
CFreeModule |
getNullModule()
Returns the null-module corresponding to this module. |
CElement |
getOne()
Returns the unit element of this ring. |
CElement |
getUnitElement(int i)
Returns the unit vector with 1 at position i . |
static XMLInputOutput<Module> |
getXMLInput()
|
static XMLInputOutput<Module> |
getXMLInputOutput()
|
CElement |
getZero()
Returns the zero element of this ring. |
boolean |
hasElement(ModuleElement element)
Returns true iff element is an element of this module. |
int |
hashCode()
Returns the hash code for this module. |
boolean |
isField()
Returns true if this ring is a field. |
boolean |
isVectorspace()
Returns true if this free module is a vector space. |
CElement |
parseString(java.lang.String string)
Creates an element in this module from a string representation. |
java.lang.String |
toString()
Returns a human readable string representation of this module. |
java.lang.String |
toVisualString()
Returns a human readable string representation of this module. |
void |
toXML(XMLWriter writer)
Outputs XML representation to writer . |
Methods inherited from class org.rubato.math.module.NumberRing |
---|
compareTo |
Methods inherited from class org.rubato.math.module.Ring |
---|
getComponentModule, getDimension, getInjection, getProjection, getRing, getTranslation, isNullModule, isRing |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.rubato.math.module.FreeModule |
---|
getInjection, getProjection |
Methods inherited from interface org.rubato.math.module.Module |
---|
getComponentModule, getDimension, getRing, getTranslation, isNullModule, isRing |
Field Detail |
---|
public static final CRing ring
Method Detail |
---|
public CElement getZero()
Ring
getZero
in interface CFreeModule
getZero
in interface Module
getZero
in class Ring
public CElement getOne()
Ring
getOne
in class Ring
public CElement getUnitElement(int i)
Ring
i
.
In the case of rings, this is simple the unit.
getUnitElement
in interface CFreeModule
getUnitElement
in interface FreeModule
getUnitElement
in class Ring
public CFreeModule getNullModule()
Module
getNullModule
in interface Module
public boolean isField()
Ring
isField
in class Ring
public boolean isVectorspace()
FreeModule
isVectorspace
in interface FreeModule
public ModuleMorphism getIdentityMorphism()
Module
getIdentityMorphism
in interface Module
public boolean hasElement(ModuleElement element)
Module
element
is an element of this module.
hasElement
in interface Module
public CFreeModule getFreeModule(int dimension)
Ring
dim
.
getFreeModule
in class Ring
public boolean equals(java.lang.Object object)
Module
object
.
equals
in interface Module
equals
in class java.lang.Object
public int compareTo(Module object)
Module
object
.
compareTo
in interface java.lang.Comparable<Module>
compareTo
in interface Module
compareTo
in class NumberRing
public CElement createElement(java.util.List<ModuleElement> elements)
Module
createElement
in interface CFreeModule
createElement
in interface Module
public CElement cast(ModuleElement element)
Module
element
to an element in this module if possible.
cast
in interface Module
public CElement cast(ZElement element)
public CElement cast(ZnElement element)
public CElement cast(QElement element)
public CElement cast(RElement element)
public CElement cast(CElement element)
public java.lang.String toString()
Module
toString
in interface Module
toString
in class java.lang.Object
public java.lang.String toVisualString()
Module
toVisualString
in interface Module
public CElement parseString(java.lang.String string)
Module
parseString
in interface Module
parseString
in class Ring
public void toXML(XMLWriter writer)
XMLInputOutput
writer
.
toXML
in interface XMLInputOutput<Module>
public Module fromXML(XMLReader reader, org.w3c.dom.Element element)
XMLInputOutput
reader
starting with element
.
fromXML
in interface XMLInputOutput<Module>
public static XMLInputOutput<Module> getXMLInputOutput()
public java.lang.String getElementTypeName()
XMLInputOutput
getElementTypeName
in interface XMLInputOutput<Module>
public static XMLInputOutput<Module> getXMLInput()
public int hashCode()
Module
hashCode
in interface Module
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |