Next: ... Up: Nested loops Previous: ...

...

The same loop:

 for  tex2html_wrap_inline1112  = 0 to 3 do

  for tex2html_wrap_inline1114 = 0 to 3 do

S:   A[ tex2html_wrap_inline1112 , tex2html_wrap_inline1114 ] := A[ tex2html_wrap_inline1230 , tex2html_wrap_inline1114 ] + A[ tex2html_wrap_inline1112 , tex2html_wrap_inline1236 ]

For humans the easy way to understand this loop nest is to draw the iteration space showing the iteration-to-iteration dependences:

tabular282

The diagram shows an arrow for each solution of each dependence equation.



Paul H J Kelly Thu Dec 4 18:15:31 GMT 1997