blas_isort - sorts an integer vector X in increasing or decreasing order using quick sort algorithm
SUBROUTINE BLAS_ISORT( SORT, N, X, INCX) INTEGER SORT, N, INCX INTEGER X(*)
SUBROUTINE BLAS_ISORT_64( SORT, N, X, INCX) INTEGER*8 SORT, N, INCX INTEGER*8 X(*)
SUBROUTINE SORT( [SORT], [N], X, [INCX]) INTEGER :: SORT, N, INCX INTEGER, DIMENSION(:) :: X
SUBROUTINE SORT_64( [SORT], [N], X, [INCX]) INTEGER(8) :: SORT, N, INCX INTEGER(8), DIMENSION(:) :: X
#include <sunperf.h>
void blas_isort(int sort, int n, int *x, int incx);
void blas_isort_64(long sort, long n, long *x, long incx);
SORT = 1, ascending
SORT = other value, error
SORT is default to 1 for F95 INTERFACE
Minimum size (N-1)*|INCX|+1 is required
If SORT = 0, let SORT = 1, INCX = |INCX|;
If SORT = 1, let SORT = 0, INCX = |INCX|.
blas_isortv(3P), blas_ipermute(3P)