Package aloha :: Module aloha_lib :: Class ConstantObject
[hide private]
[frames] | no frames]

Class ConstantObject

source code

             object --+        
                      |        
                   dict --+    
                          |    
LorentzObjectRepresentation --+
                              |
                             ConstantObject

Nested Classes [hide private]

Inherited from LorentzObjectRepresentation: LorentzObjectRepresentationError

Instance Methods [hide private]
new empty dictionary

__init__(self, var=0)
initialize the lorentz object representation
source code
a shallow copy of D
copy(self)
return a copy of the object
source code
 
__add__(self, obj)
Addition with a constant
source code
 
__radd__(self, obj)
Addition with a constant
source code
 
__iadd__(self, obj)
Addition with a constant
source code
 
__mul__(self, obj)
Zero is absorbant
source code
 
__rmul__(self, obj)
Zero is absorbant
source code
 
__imul__(self, obj)
Zero is absorbant
source code
 
get_rep(self, ind)
return representation
source code
 
__eq__(self, obj)
Check that two representation are identical
source code
 
expand(self) source code
 
__str__(self)
string representation
source code

Inherited from LorentzObjectRepresentation: __div__, __isub__, __rdiv__, __rsub__, __rtruediv__, __sub__, __truediv__, combine_indices, contraction, factorize, listindices, set_rep, simplify, tensor_product

Inherited from dict: __cmp__, __contains__, __delitem__, __ge__, __getattribute__, __getitem__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __new__, __repr__, __setitem__, __sizeof__, clear, fromkeys, get, has_key, items, iteritems, iterkeys, itervalues, keys, pop, popitem, setdefault, update, values

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __subclasshook__

Static Methods [hide private]

Inherited from LorentzObjectRepresentation: compare_indices, pass_ind_in_dict

Class Variables [hide private]
  vartype = 5
  lorentz_ind = []
  spin_ind = []
  nb_ind = 0
  variable = '0'
  prefactor = 1
  power = 1

Inherited from dict: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, var=0)
(Constructor)

source code 

initialize the lorentz object representation

Returns:
new empty dictionary

Overrides: object.__init__
(inherited documentation)

copy(self)

source code 

return a copy of the object

Returns: a shallow copy of D
Overrides: dict.copy

__add__(self, obj)
(Addition operator)

source code 

Addition with a constant

Overrides: LorentzObjectRepresentation.__add__

__iadd__(self, obj)

source code 

Addition with a constant

Overrides: LorentzObjectRepresentation.__add__

__mul__(self, obj)

source code 

Zero is absorbant

Overrides: LorentzObjectRepresentation.__mul__

__rmul__(self, obj)

source code 

Zero is absorbant

Overrides: LorentzObjectRepresentation.__mul__

__imul__(self, obj)

source code 

Zero is absorbant

Overrides: LorentzObjectRepresentation.__mul__

get_rep(self, ind)

source code 

return representation

Overrides: LorentzObjectRepresentation.get_rep

__eq__(self, obj)
(Equality operator)

source code 

Check that two representation are identical

Overrides: dict.__eq__
(inherited documentation)

__str__(self)
(Informal representation operator)

source code 

string representation

Overrides: object.__str__
(inherited documentation)