9.86 EOSHIFT — End-off shift elements of an array
- Description:
-
EOSHIFT(ARRAY, SHIFT[, BOUNDARY, DIM])
performs an end-off shift on elements of ARRAY along the dimension of DIM. If DIM is omitted it is taken to be 1
. DIM is a scalar of type INTEGER
in the range of 1 \leq DIM \leq n) where n is the rank of ARRAY. If the rank of ARRAY is one, then all elements of ARRAY are shifted by SHIFT places. If rank is greater than one, then all complete rank one sections of ARRAY along the given dimension are shifted. Elements shifted out one end of each rank one section are dropped. If BOUNDARY is present then the corresponding value of from BOUNDARY is copied back in the other end. If BOUNDARY is not present then the following are copied in depending on the type of A