parameters: (loop, index, sub_lvalue=True)
return_statement: return reduce(lambda x,y: x+y,[o+";" for o in outputexpr])
docstring: Replace the variables in the loop expression with ones indexed
      by index. sub_lvalue determines wether the lvalue should also have
      the index appended, since that's the case for Fortran but not for
      Blitz index expressions.
docstring_summary: Replace the variables in the loop expression with ones indexed
      by index. sub_lvalue determines wether the lvalue should also have
      the index appended, since that's the case for Fortran but not for
      Blitz index expressions.
docstring_tokens: Replace the variables in the loop expression with ones indexed by index . sub_lvalue determines wether the lvalue should also have the index appended since that s the case for Fortran but not for Blitz index expressions .
function: def indexexpr(loop, index, sub_lvalue=True):
      """Replace the variables in the loop expression with ones indexed
      by index. sub_lvalue determines wether the lvalue should also have
      the index appended, since that's the case for Fortran but not for
      Blitz index expressions."""
  
      # split up expressions
      indexexpr = loopexpr(loop).split(";")
      outputexpr=[]
      for i in indexexpr:
          # for each expression, find lvalue and rvalue
          if sub_lvalue:
              asspos=0
          else:
              asspos=i.find("=")
          lvalue=i[0:asspos]
          rvalue=i[asspos:]
          for n in looparrays(loop):
              rvalue=rvalue.replace("$%s"%n,"%s(%s)"%(n,index))
              lvalue=lvalue.replace("$%s"%n,"%s"%n)
          outputexpr.append(lvalue+rvalue)
      
      return reduce(lambda x,y: x+y,[o+";" for o in outputexpr])
function_tokens: def indexexpr ( loop , index , sub_lvalue = True ) : # split up expressions indexexpr = loopexpr ( loop ) . split ( ";" ) outputexpr = [ ] for i in indexexpr : # for each expression, find lvalue and rvalue if sub_lvalue : asspos = 0 else : asspos = i . find ( "=" ) lvalue = i [ 0 : asspos ] rvalue = i [ asspos : ] for n in looparrays ( loop ) : rvalue = rvalue . replace ( "$%s" % n , "%s(%s)" % ( n , index ) ) lvalue = lvalue . replace ( "$%s" % n , "%s" % n ) outputexpr . append ( lvalue + rvalue ) return reduce ( lambda x , y : x + y , [ o + ";" for o in outputexpr ] )