F_SSORTV/F_DSORTV

 

Sort vector and return index vector

 

X

REAL array, minimum length (N - 1) x incx + 1.

 

INCX

Increment for the array x. A vector x having component

 

 

xi, i = 1,..., n, is stored in an array X() with increment

 

 

argument incx. If incx > 0 then xiis stored in

 

 

X (1 + (i - 1) x incx). If incx < 0 then xi is stored in

 

 

X (1 + (N - i) x incx). incx = 0 is an illegal value.

 

INCP

Increment for the array p. A vector p having component

 

 

pi, i = 1,..., n, is stored in an array P() with increment

 

 

argument incp. If incp > 0 then piis stored in

 

 

P (1 + (i - 1) x incp). If incp < 0 then piis stored in

 

 

P (1 + (N - i) x incp). incp = 0 is an illegal value.

Output

X

Updated (sorted) array replaces the input.

 

P

Permuted vector. Array of integers, minimum length

 

 

(N - 1) x incp + 1.

194HP MLIB User’s Guide