Visible to Intel only — GUID: GUID-F1C6E83E-430A-49B5-BF52-0380A2D542C6
Visible to Intel only — GUID: GUID-F1C6E83E-430A-49B5-BF52-0380A2D542C6
?lasrt
Sorts numbers in increasing or decreasing order.
Syntax
call slasrt( id, n, d, info )
call dlasrt( id, n, d, info )
Include Files
- mkl.fi
Description
The routine ?lasrt sorts the numbers in d in increasing order (if id = 'I') or in decreasing order (if id = 'D'). It uses Quick Sort, reverting to Insertion Sort on arrays of size ≤ 20. Dimension of stack limits n to about 232.
Input Parameters
The data types are given for the Fortran interface.
- id
-
CHARACTER*1.
(d(1) ≤ ... ≤ d(n)) or into decreasing order
(d(1) ≥ ... ≥d(n)), depending on id.
- n
-
INTEGER. The length of the array d.
- d
-
REAL for slasrt
DOUBLE PRECISION for dlasrt.
On entry, the array to be sorted.
Output Parameters
- d
-
On exit, d has been sorted into increasing order
(d[0]≤d[1]≤ ... ≤ d[n-1]) or into decreasing order
(d[0] ≥ d[1] ≥ ... ≥d[n-1]), depending on id.
- info
-
INTEGER. If info = 0, the execution is successful.
If info < 0, the i-th parameter had an illegal value.