org.rubato.math.module.morphism
Class ConjugationMorphism

java.lang.Object
  extended by org.rubato.math.module.morphism.ModuleMorphism
      extended by org.rubato.math.module.morphism.ConjugationMorphism
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<ModuleMorphism>, XMLInputOutput<ModuleMorphism>

public final class ConjugationMorphism
extends ModuleMorphism

The function that takes a complex number (or vector) to its conjugate.

Author:
Gérard Milmeister
See Also:
Serialized Form

Constructor Summary
ConjugationMorphism(int dimension)
           
 
Method Summary
 ModuleElement atZero()
          Returns the value of the morphism evaluated at the zero of the domain.
 int compareTo(ModuleMorphism object)
          Compares two module morphisms.
 ModuleMorphism compose(ModuleMorphism morphism)
          Returns the composition this*morphism.
 boolean equals(java.lang.Object object)
          Returns true iff this morphism is equal to object.
 ModuleMorphism 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.
 ModuleMorphism getRingMorphism()
          Returns the the ring morphism that transforms between the rings of the domain and codomain modules.
static XMLInputOutput<ModuleMorphism> getXMLInputOutput()
           
 boolean isRingHomomorphism()
          If true, then this is a ring homomorphism.
 ModuleElement map(ModuleElement x)
          Maps the element x.
 ModuleMorphism power(int n)
          Returns this module morphism raise to the power n.
 java.lang.String toString()
          Returns a string representation of this morphism.
 void toXML(XMLWriter writer)
          Outputs XML representation to writer.
 
Methods inherited from class org.rubato.math.module.morphism.ModuleMorphism
clone, composable, difference, getCodomain, getConstantMorphism, getConstantMorphism, getDomain, getIdentityMorphism, inDomain, isConstant, isIdentity, isLinear, isModuleHomomorphism, isRingMorphism, scaled, sum
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConjugationMorphism

public ConjugationMorphism(int dimension)
Method Detail

map

public ModuleElement map(ModuleElement x)
                  throws MappingException
Description copied from class: ModuleMorphism
Maps the element x. This must be implemented for each specific morphism type.

Specified by:
map in class ModuleMorphism
Returns:
the result of mapping element x
Throws:
MappingException - if mapping of element fails

isRingHomomorphism

public boolean isRingHomomorphism()
Description copied from class: ModuleMorphism
If true, then this is a ring homomorphism.

Overrides:
isRingHomomorphism in class ModuleMorphism

getRingMorphism

public ModuleMorphism getRingMorphism()
Description copied from class: ModuleMorphism
Returns the the ring morphism that transforms between the rings of the domain and codomain modules.

Specified by:
getRingMorphism in class ModuleMorphism

compose

public ModuleMorphism compose(ModuleMorphism morphism)
                       throws CompositionException
Description copied from class: ModuleMorphism
Returns the composition this*morphism.

Overrides:
compose in class ModuleMorphism
Throws:
CompositionException - if composition could not be performed

atZero

public ModuleElement atZero()
Description copied from class: ModuleMorphism
Returns the value of the morphism evaluated at the zero of the domain.

Overrides:
atZero in class ModuleMorphism

power

public ModuleMorphism power(int n)
                     throws CompositionException
Description copied from class: ModuleMorphism
Returns this module morphism raise to the power n. The power must be non-negative and the domain must be equal to the codomain.

Overrides:
power in class ModuleMorphism
Throws:
CompositionException - if power could not be performed

equals

public boolean equals(java.lang.Object object)
Description copied from class: ModuleMorphism
Returns true iff this morphism is equal to object. In general it is not possible to determine whether to functions are the same, so this returns true iff both morphisms have the same structure.

Specified by:
equals in class ModuleMorphism

compareTo

public int compareTo(ModuleMorphism object)
Description copied from class: ModuleMorphism
Compares two module morphisms. Checks first for equality. The default comparison is on names, subclasses may implement a more meaningful comparison.

Specified by:
compareTo in interface java.lang.Comparable<ModuleMorphism>
Overrides:
compareTo in class ModuleMorphism

toString

public java.lang.String toString()
Description copied from class: ModuleMorphism
Returns a string representation of this morphism. This string is used for generic comparison.

Specified by:
toString in class ModuleMorphism

toXML

public void toXML(XMLWriter writer)
Description copied from interface: XMLInputOutput
Outputs XML representation to writer.


fromXML

public ModuleMorphism fromXML(XMLReader reader,
                              org.w3c.dom.Element element)
Description copied from interface: XMLInputOutput
Reads XML representation from reader starting with element.

Returns:
an object of type T or null if parsing failed

getXMLInputOutput

public static XMLInputOutput<ModuleMorphism> getXMLInputOutput()

getElementTypeName

public java.lang.String getElementTypeName()
Description copied from interface: XMLInputOutput
Returns the value of the type attribute for this class.