Next: ... Up: Chapter3 Previous: ...

...

The same loop:

 for  tex2html_wrap_inline664  = 0 to 3 do

  for tex2html_wrap_inline666 = 0 to 3 do

S:   A[ tex2html_wrap_inline664 , tex2html_wrap_inline666 ] := A[ tex2html_wrap_inline674 , tex2html_wrap_inline666 ] + A[ tex2html_wrap_inline664 , tex2html_wrap_inline680 ]

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

tabular74

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



Paul H J Kelly Thu Feb 6 22:09:21 GMT 1997