SORT_IDXI
Create an index for a 1-dimensional INTEGER array
Invocation
CALL SORT_IDXI( N, IN, ASCEND, INDEX, STATUS )
Description
Creates an integer index or rank list for the input array IN. The
index lists the indices of the elements of IN in ascending or
descending order depending on the value of ASCEND.
Arguments
-
N = INTEGER (given)
The number of data values to rank
-
IN = INTEGER[] (given)
The values to rank
-
ASCEND = LOGICAL (given)
Rank into ascending order?
-
INDEX = INTEGER[] (returned)
The ranking array
-
STATUS = INTEGER (given)
The global status.
References