Package sage :: Package combinat :: Package crystals :: Module spins :: Class Spin
[hide private]
[frames] | no frames]

Class Spin

source code

                      object --+        
                               |        
structure.sage_object.SageObject --+    
                                   |    
           structure.element.Element --+
                                       |
                                      Spin
Known Subclasses:
Spin_crystal_type_B_element, Spin_crystal_type_D_element

Instance Methods [hide private]
 
__init__(self, parent, value)
EXAMPLES:...
source code
 
parent(self)
Returns the parent of self.
source code
 
__repr__(self)
EXAMPLES:...
source code
 
__eq__(self, other)
EXAMPLES:...
source code
 
__cmp__(self, other)
EXAMPLES:...
source code
 
signature(self)
Returns the signature of self.
source code

Inherited from structure.element.Element: __ge__, __gt__, __hash__, __le__, __lt__, __ne__, __new__, __nonzero__, __reduce__, __rxor__, __xor__, _cmp_, _im_gens_, _repr_, _richcmp_, base_base_extend, base_base_extend_canonical_sym, base_extend, base_extend_canonical, base_extend_canonical_sym, base_extend_recursive, base_ring, category, is_zero, n, subs, substitute

Inherited from structure.sage_object.SageObject: _axiom_, _axiom_init_, _gap_, _gap_init_, _gp_, _gp_init_, _interface_, _interface_init_, _interface_is_cached_, _kash_, _kash_init_, _macaulay2_, _macaulay2_init_, _magma_, _magma_init_, _maple_, _maple_init_, _mathematica_, _mathematica_init_, _maxima_, _maxima_init_, _octave_, _octave_init_, _pari_, _pari_init_, _r_init_, _sage_, _singular_, _singular_init_, db, dump, dumps, plot, rename, reset_name, save, version

Inherited from object: __delattr__, __getattribute__, __reduce_ex__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, parent, value)
(Constructor)

source code 

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: c = C([1,1,1])
    sage: c == loads(dumps(c))
    True

Overrides: structure.element.Element.__init__

parent(self)

source code 

Returns the parent of self.

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: C([1,1,1]).parent()
    The crystal of spins for type ['B', 3]

Overrides: structure.element.Element.parent

__repr__(self)
(Representation operator)

source code 

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: c = C([1,1,1])
    sage: c.__repr__()
    '[1, 1, 1]'

Overrides: structure.sage_object.SageObject.__repr__

__eq__(self, other)
(Equality operator)

source code 

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: D = CrystalOfSpins(['B',4])
    sage: a = C([1,1,1])
    sage: b = C([-1,-1,-1])
    sage: c = D([1,1,1,1])
    sage: a == a
    True
    sage: a == b
    False
    sage: b == c
    False

Overrides: structure.element.Element.__eq__

__cmp__(self, other)
(Comparison operator)

source code 

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: c1 = C([1,1,1])
    sage: c2 = C([-1,-1,-1])
    sage: c1 < c2
    True
    sage: c2 < c1
    False
    sage: c2 > c1
    True
    sage: c1 <= c1
    True

Overrides: structure.element.Element.__cmp__

signature(self)

source code 

Returns the signature of self.

EXAMPLES:
    sage: C = CrystalOfSpins(['B',3])
    sage: C([1,1,1]).signature()
    '+++'
    sage: C([1,1,-1]).signature()
    '++-'