PLASMA  2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
#define SELECT   20

CORE_slapst - It is a modified version of the LAPACK routine D inspired from the ScaLAPACK dlapst.

Define a permutation INDX that sorts the numbers in D in increasing order (if ID = 'I') or in decreasing order (if ID = 'D' ).

Use Quick Sort, reverting to Insertion sort on arrays of size <= 20. Dimension of STACK limits N to about 2**32.

Parameters
[in]typeThe type of sorting 'PlasmaIncreasingOrder' for increasing order 'PlasmaDecreasingOrder' for decreasing order
[in]nn specifies the dimension of the array D
[in]DD is the array to be sorted of dimension n.
[out]INDXOn exit, contains the permutation which sorts the array D. INDX is of dimension n.