next up previous contents index
Next: Mask Operators Up: Binary Operators Previous: Logical Operators

The At Operator

 

  The At operator (@), which is left-associative, takes a parallel expression and a direction as operands, and evaluates to a parallel expression that is of the same size and shape as the first operand but displaced from the original by the direction vector. The parallel operand must have a legal l-value (see Section 5.5).

In the following example, the last two lines have the same effect.

    region    R     = [1..n, 1..n];
    direction east  = [0, 1];
              east2 = [0, 2];
    
    var       A, B: [R] float;

    . . .

    B := A@east@east;
    B := A@east2;



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