next up previous contents index
Next: Reduction to Java arrays Up: Block Parameters Previous: Ghost regions and dimension   Contents   Index

Local blocks of subranges

So far our recursive translation scheme does not apply to general overall constructions, which include some non-default triplet parameters. Overloaded versions of localBlock() that take l, u, s arguments are provided. Translation in this case is illustrated in Figure 7.12. There is also a version of localBlock() that omits the stride argument, s. This can be used in the case of unit stride.

Figure 7.12: Recursive translation of overall construct with triplet index range.
SOURCE:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}floa...
...or l : u : s)
a [i] = (float) i\lq  ;\end{verbatim}\end{minipage}\end{displaymath}

TRANSLATION:

\begin{displaymath}
\begin{minipage}[t]{\linewidth}\small\begin{verbatim}floa...
...t) (b.glb_bas + b.glb_stp * m) ;
}\end{verbatim}\end{minipage}\end{displaymath}



Bryan Carpenter 2003-04-15