HPJava allows to construct sections of global arrays. The syntax of section subscripting uses double brackets. The subscripts can be scalar (integers or locations) or triplets.
Suppose we still have array a and c defined as above, then, a[[i]], c, c[[i, 1::2]], and c[[i, :]] are all array sections. Here i is a location in the first range of a and c (it could also be an integer in the appropriate interval). Both the expressions c[[i, 1::2]] and c[[i, :]] represent one-dimensional distributed arrays, providing aliases for subsets of the elements in c. The expression a[[i]] contains a single element of a, but the result is a global scalar reference (unlike the expression a[i] which is a simple variable).
Array section expressions are often used as arguments in function
calls2. Table 1 shows the type
signatures of global data with different dimensions.