Developer Reference

Contents

?lasrt

Sorts numbers in increasing or decreasing order.

Syntax

lapack_int
LAPACKE_slasrt
(
char
id
,
lapack_int
n
,
float
*
d
);
lapack_int
LAPACKE_dlasrt
(
char
id
,
lapack_int
n
,
double
*
d
);
Include Files
  • mkl.h
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 2
32
.
Input Parameters
A
<datatype>
placeholder, if present, is used for the C interface data types in the C interface section above. See C Interface Conventions for the C interface principal conventions and type definitions.
id
=
'I'
: sort
d
in increasing order;
=
'D'
: sort
d
in decreasing order.
n
The length of the array
d
.
d
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
.
Return Values
This function returns a value
info
.
If
info
= 0
, the execution is successful.
If
info
< 0
, the
i
-th parameter had an illegal value.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804