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

Class MultLorentz

source code

object --+        
         |        
      list --+    
             |    
  MultVariable --+
                 |
                MultLorentz

Specific class for LorentzObject Multiplication

Nested Classes [hide private]
  add_class
A list of Variable/ConstantObject/...
Instance Methods [hide private]
 
find_lorentzcontraction(self)
return of (pos_object1, indice1) ->(pos_object2,indices2) definng the contraction in this Multiplication.
source code
 
find_spincontraction(self)
return of (pos_object1, indice1) ->(pos_object2,indices2) defining the contraction in this Multiplication.
source code
 
expand(self)
expand each part of the product and combine them.
source code
 
neighboor(self, home)
return one variable which are contracted with var and not yet expanded
source code
 
check_equivalence(self, obj, i, j, lorentzcontractself, lorentzcontractobj, spincontractself, spincontractobj, map)
check if i and j are compatible up to sum up indices
source code
 
find_equivalence(self, obj, pos, lorentzcontractself, lorentzcontractobj, spincontractself, spincontractobj, map)
Try to achieve to have a mapping between the two representations
source code
 
__eq__(self, obj)
Define When two MultVariable are identical
source code

Inherited from MultVariable: __add__, __div__, __iadd__, __init__, __mul__, __ne__, __neg__, __radd__, __rdiv__, __rep__, __rmul__, __rsub__, __rtruediv__, __str__, __sub__, __truediv__, append, copy, factorize, simplify

Inherited from list: __contains__, __delitem__, __delslice__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __imul__, __iter__, __le__, __len__, __lt__, __new__, __repr__, __reversed__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, remove, reverse, sort

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

Class Variables [hide private]

Inherited from MultVariable: vartype

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

expand(self)

source code 

expand each part of the product and combine them. Try to use a smart order in order to minimize the number of uncontracted indices.

Overrides: MultVariable.expand

__eq__(self, obj)
(Equality operator)

source code 

Define When two MultVariable are identical

Overrides: list.__eq__
(inherited documentation)