HP Fortran Programmer's Reference (September 2007)

Intrinsic procedures
Intrinsic procedure speciļ¬cations
Chapter 11 547
Argument
A must be of type integer, real, or complex.
Result
Double precision.
EOSHIFT(ARRAY, SHIFT, BOUNDARY, DIM)
Optional arguments
BOUNDARY, DIM
Description
Perform an end-off shift on an array expression of rank one or perform end-off shifts on all the
complete rank-one sections along a given dimension of an array expression of rank two or
greater.
Elements are shifted off at one end of a section and copies of a boundary value are shifted in
at the other end.
Different sections may have different boundary values and may be shifted by different
amounts and in different directions (positive for left shifts, negative for right shifts).
Class
Transformational function.
Arguments
ARRAY
may be of any type. It must not be scalar.
SHIFT
must be of type integer and must be scalar if ARRAY has rank one; otherwise,
it must be scalar or of rank
n
-1 and of shape (
d
1
,
d
2
, ...,
d
DIM-1
,
d
DIM+1
, ...,
d
n
)
where (
d
1
,
d
2
, ...,
d
n
) is the shape of ARRAY.
BOUNDARY (optional)