next up previous contents index
Next: Binary Operators Up: Reductions and Scans Previous: Partial Reductions.

Floods.

 

 

The flood operator (>>) replicates data across a dimension or dimensions of an array expression. As with partial reductions, two regions are needed. One for the source expression and one for the target expression, as shown below.

[*,1..m]  F := >>[3,1..m] A; -- Replicate A's 3rd row into F
The region following the operator specifies the array to be replicated, and the region on the statement specifies the region of the result, which must be a floodable array. Floodable arrays are described in detail in Section 3.7.2, but in this case it suffices to know that the first dimension of F is an absent dimension (as indicated by the asterisk), which allows data to be replicated.



Kay Nettle
Fri Feb 21 21:14:29 CST 1997