next up previous contents index
Next: Rank Defined Arrays Up: Declarations Previous: Scope Rules

Declaring Degenerate Dimensions

 

The above example shows how indexed arrays and parallel arrays are declared by specifying upper and lower bounds for each dimension. A short-hand is provided for degenerate dimensions that contain only a single index. The following two declarations are equivalent.

    region east = [1..n, n..n]
           East = [1..n, n];
This short-hand is legal anywhere a range is needed to specify upper and lower bounds. In particular, it can be used to declare indexed arrays, parallel arrays, or dynamic regions (see Section 3.5.4).



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