1SLASRT(1)                LAPACK routine (version 3.2)                SLASRT(1)
2
3
4

NAME

6       SLASRT  -  the  number  in  D  in  increasing order (if ID = 'I') or in
7       decreasing order (if ID = 'D' )
8

SYNOPSIS

10       SUBROUTINE SLASRT( ID, N, D, INFO )
11
12           CHARACTER      ID
13
14           INTEGER        INFO, N
15
16           REAL           D( * )
17

PURPOSE

19       Sort the numbers in D in increasing order (if ID = 'I') or in  decreas‐
20       ing  order (if ID = 'D' ).  Use Quick Sort, reverting to Insertion sort
21       on arrays of
22       size <= 20. Dimension of STACK limits N to about 2**32.
23

ARGUMENTS

25       ID      (input) CHARACTER*1
26               = 'I': sort D in increasing order;
27               = 'D': sort D in decreasing order.
28
29       N       (input) INTEGER
30               The length of the array D.
31
32       D       (input/output) REAL array, dimension (N)
33               On entry, the array to be sorted.  On exit, D has  been  sorted
34               into increasing order (D(1) <= ... <= D(N) ) or into decreasing
35               order (D(1) >= ... >= D(N) ), depending on ID.
36
37       INFO    (output) INTEGER
38               = 0:  successful exit
39               < 0:  if INFO = -i, the i-th argument had an illegal value
40
41
42
43 LAPACK routine (version 3.2)    November 2008                       SLASRT(1)
Impressum