1DLASRT(1) LAPACK routine (version 3.1) DLASRT(1)
2
3
4
6 DLASRT - number in D in increasing order (if ID = 'I') or in decreasing
7 order (if ID = 'D' )
8
10 SUBROUTINE DLASRT( ID, N, D, INFO )
11
12 CHARACTER ID
13
14 INTEGER INFO, N
15
16 DOUBLE PRECISION D( * )
17
19 Sort the numbers in D in increasing order (if ID = 'I') or in decreasâ
20 ing order (if ID = 'D' ).
21
22 Use Quick Sort, reverting to Insertion sort on arrays of
23 size <= 20. Dimension of STACK limits N to about 2**32.
24
25
27 ID (input) CHARACTER*1
28 = 'I': sort D in increasing order;
29 = 'D': sort D in decreasing order.
30
31 N (input) INTEGER
32 The length of the array D.
33
34 D (input/output) DOUBLE PRECISION array, dimension (N)
35 On entry, the array to be sorted. On exit, D has been sorted
36 into increasing order (D(1) <= ... <= D(N) ) or into decreasing
37 order (D(1) >= ... >= D(N) ), depending on ID.
38
39 INFO (output) INTEGER
40 = 0: successful exit
41 < 0: if INFO = -i, the i-th argument had an illegal value
42
43
44
45 LAPACK routine (version 3.1) November 2006 DLASRT(1)