58
Promoting Scalar Procedures
•Procedures that only use scalar parameters, operations, etc. can be promoted to arrays
•Cannot use regions, array operations or other array-based notation
•
•procedure sign (x: double) : integer;
•    if x < 0 then return -1
•             elseif x = 0 then return 0
•                          else return 1;
•
•[1..m, 1..n] A := sign(B);
•
Importing scalar computations from C is an application