parameters: (r, name, mode="python", initial_tabs=3, max_index=30, replace_indices=True, assignment_op="=")
return_statement: return outstring
docstring: This method converts into text the RHS vector
  
      Keyword arguments:
      rhs -- The RHS vector
      name -- The name of the variables
      mode -- The mode of output
      initial_tabs -- The number of tabulations considered
      max_index -- The maximum index
      replace_indices -- If the indixes must be replaced
      assignment_op -- The assignment operation
docstring_summary: This method converts into text the RHS vector
docstring_tokens: This method converts into text the RHS vector
function: def OutputVector(r, name, mode="python", initial_tabs=3, max_index=30, replace_indices=True, assignment_op="="):
      """ This method converts into text the RHS vector
  
      Keyword arguments:
      rhs -- The RHS vector
      name -- The name of the variables
      mode -- The mode of output
      initial_tabs -- The number of tabulations considered
      max_index -- The maximum index
      replace_indices -- If the indixes must be replaced
      assignment_op -- The assignment operation
      """
      initial_spaces = str("")
      for i in range(0,initial_tabs):
          initial_spaces += str("    ")
  
      outstring = str("")
      for i in range(0,r.shape[0]):
          if(mode == "python"):
              outstring += initial_spaces + name + str("[") + str(i) + str("]") + str(assignment_op) + str(r[i,0]) + str("\n")
          elif(mode=="c"):
              outstring += initial_spaces + name + str("[") + str(i) + str("]") + str(assignment_op) + ccode(r[i,0]) + str(";\n")
  
      if replace_indices:
          #matrix entries (two indices)
          for i in range(0,max_index):
              for j in range(0,max_index):
                  if(mode == "python"):
                      replacement_string = str("[") + str(i) + str(",") + str(j) + str("]")
                  elif(mode=="c"):
                      replacement_string = str("(") + str(i) + str(",") + str(j) + str(")")
                  to_be_replaced = str("_") + str(i) + str("_") + str(j)
                  newstring = outstring.replace(to_be_replaced, replacement_string)
                  outstring = newstring
  
          #vector entries(one index)
          for i in range(0,max_index):
              replacement_string = str("[") + str(i) + str("]")
              to_be_replaced = str("_") + str(i)
              newstring = outstring.replace(to_be_replaced, replacement_string)
              outstring = newstring
  
      return outstring
function_tokens: def OutputVector ( r , name , mode = "python" , initial_tabs = 3 , max_index = 30 , replace_indices = True , assignment_op = "=" ) : initial_spaces = str ( "" ) for i in range ( 0 , initial_tabs ) : initial_spaces += str ( "    " ) outstring = str ( "" ) for i in range ( 0 , r . shape [ 0 ] ) : if ( mode == "python" ) : outstring += initial_spaces + name + str ( "[" ) + str ( i ) + str ( "]" ) + str ( assignment_op ) + str ( r [ i , 0 ] ) + str ( "\n" ) elif ( mode == "c" ) : outstring += initial_spaces + name + str ( "[" ) + str ( i ) + str ( "]" ) + str ( assignment_op ) + ccode ( r [ i , 0 ] ) + str ( ";\n" ) if replace_indices : #matrix entries (two indices) for i in range ( 0 , max_index ) : for j in range ( 0 , max_index ) : if ( mode == "python" ) : replacement_string = str ( "[" ) + str ( i ) + str ( "," ) + str ( j ) + str ( "]" ) elif ( mode == "c" ) : replacement_string = str ( "(" ) + str ( i ) + str ( "," ) + str ( j ) + str ( ")" ) to_be_replaced = str ( "_" ) + str ( i ) + str ( "_" ) + str ( j ) newstring = outstring . replace ( to_be_replaced , replacement_string ) outstring = newstring #vector entries(one index) for i in range ( 0 , max_index ) : replacement_string = str ( "[" ) + str ( i ) + str ( "]" ) to_be_replaced = str ( "_" ) + str ( i ) newstring = outstring . replace ( to_be_replaced , replacement_string ) outstring = newstring return outstring