Package aloha :: Module aloha_writers :: Class WriteALOHA
[hide private]
[frames] | no frames]

Class WriteALOHA

source code

Known Subclasses:

Generic writing functions

Nested Classes [hide private]
  change_number_format
str(object='') -> string
Instance Methods [hide private]
 
__init__(self, abstract_routine, dirpath) source code
 
pass_to_HELAS(self, indices, start=0)
find the Fortran HELAS position for the list of index
source code
 
get_header_txt(self, mode='')
Prototype for language specific header
source code
 
get_declaration_txt(self)
Prototype for how to write the declaration of variable
source code
 
define_content(self)
Prototype for language specific body
source code
 
get_momenta_txt(self)
Prototype for the definition of the momenta
source code
 
get_momentum_conservation_sign(self)
find the sign associated to the momentum conservation
source code
 
get_P_sign(self, index) source code
 
get_foot_txt(self)
Prototype for language specific footer
source code
 
define_argument_list(self, couplings=None)
define a list with the string of object required as incoming argument
source code
 
write(self, mode=None) source code
 
write_indices_part(self, indices, obj)
Routine for making a string out of indices objects
source code
 
write_obj(self, obj, prefactor=True)
Calls the appropriate writing routine
source code
 
write_MultVariable(self, obj, prefactor=True)
Turn a multvariable into a string
source code
 
write_MultContainer(self, obj, prefactor=True)
Turn a multvariable into a string
source code
 
write_obj_Add(self, obj, prefactor=True)
Turns addvariable into a string
source code
 
write_variable(self, obj) source code
 
write_variable_id(self, id) source code
 
change_var_format(self, obj)
format the way to write the variable and add it to the declaration list
source code
 
make_call_list(self, outgoing=None)
find the way to write the call of the functions
source code
 
make_declaration_list(self)
make the list of declaration nedded by the header
source code
Class Variables [hide private]
  power_symbol = '**'
  extension = ''
  type_to_variable = {-1: 'S', 1: 'S', 2: 'F', 3: 'V', 4: 'R', 5...
  type_to_size = {'F': 6, 'R': 18, 'S': 3, 'T': 18, 'V': 6}
Class Variable Details [hide private]

type_to_variable

Value:
{-1: 'S', 1: 'S', 2: 'F', 3: 'V', 4: 'R', 5: 'T'}