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

Class MultLorentz

source code

 object --+        
          |        
array.array --+    
              |    
   MultVariable --+
                  |
                 MultLorentz

Specific class for LorentzObject Multiplication

Nested Classes [hide private]
  add_class
A list of Variable/ConstantObject/...

Inherited from MultVariable: addclass

Instance Methods [hide private]
 
find_lorentzcontraction(self)
return of (pos_object1, indice1) ->(pos_object2,indices2) defining 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
 
neighboor(self, home)
return one variable which are contracted with var and not yet expanded
source code
 
expand(self, veto=[])
expand each part of the product and combine them.
source code
 
__copy__(self)
create a shadow copy
source code

Inherited from MultVariable: __add__, __div__, __iadd__, __idiv__, __imul__, __init__, __mul__, __neg__, __pow__, __radd__, __rep__, __rmul__, __rsub__, __str__, __sub__, __truediv__, factorize, get_all_var_names, get_id, replace, simplify, sort, split

Inherited from array.array: __contains__, __deepcopy__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iter__, __le__, __len__, __lt__, __ne__, __reduce__, __repr__, __setitem__, __setslice__, __sizeof__, append, buffer_info, byteswap, count, extend, fromfile, fromlist, fromstring, fromunicode, index, insert, pop, read, remove, reverse, tofile, tolist, tostring, tounicode, write

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

Static Methods [hide private]

Inherited from MultVariable: __new__

Class Variables [hide private]

Inherited from MultVariable: vartype

Properties [hide private]

Inherited from array.array: itemsize, typecode

Inherited from object: __class__

Method Details [hide private]

expand(self, veto=[])

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. Veto forbids the use of sub-expression if it contains some of the variable in the expression. Veto contains the id of the vetoed variables

__copy__(self)

source code 

create a shadow copy

Overrides: array.array.__copy__