p?lasrt
p?lasrt
Sorts the numbers in an array and the corresponding vectors in increasing order.
Syntax
void pslasrt
(
const
char*
id
,
const
MKL_INT*
n
,
float*
d
,
const
float*
q
,
const
MKL_INT*
iq
,
const
MKL_INT*
jq
,
const
MKL_INT*
descq
,
float*
work
,
const
MKL_INT*
lwork
,
MKL_INT*
iwork
,
const
MKL_INT*
liwork
,
MKL_INT*
info
);
void pdlasrt
(
const
char*
id
,
const
MKL_INT*
n
,
double*
d
,
const
double*
q
,
const
MKL_INT*
iq
,
const
MKL_INT*
jq
,
const
MKL_INT*
descq
,
double*
work
,
const
MKL_INT*
lwork
,
MKL_INT*
iwork
,
const
MKL_INT*
liwork
,
MKL_INT*
info
);
Include Files
- mkl_scalapack.h
Description
p?lasrt
sorts the numbers in d
and the corresponding vectors in q
in increasing order.Input Parameters
- id
- (global)= 'I': sortdin increasing order;= 'D': sortdin decreasing order. (NOT IMPLEMENTED YET)
- n
- (global)The number of columns to be operated on i.e the number of columns of the distributed submatrix sub(Q).n>= 0.
- d
- (global)Array, size (n)
- q
- (local)Pointer into the local memory to an array of size.lld_q*LOCc(jq+n-1)This array contains the local pieces of the distributed matrix sub(A) to be copied from.
- iq
- (global)The row index in the global array A indicating the first row of sub(Q).
- jq
- (global)The column index in the global array A indicating the first column of sub(Q).
- descq
- (global and local)Array of sizedlen_.The array descriptor for the distributed matrixA.
- work
- (local)Array, size (lwork)
- lwork
- (local)The size of the arraywork.lwork= MAX(n, NP * ( NB + NQ )), where NP =numroc(n, NB, MYROW, IAROW, NPROW ), NQ =numroc(n, NB, MYCOL, DESCQ(csrc_), NPCOL ).numrocis a ScaLAPACK tool function.
- iwork
- (local)Array, size (liwork)
- liwork
- (local)The size of the arrayiwork.liwork=n+ 2*NB + 2*NPCOL
Output Parameters
- d
- On exit, the numbers indare sorted in increasing order.
- info
- (global)= 0: successful exit< 0: If thei-th argument is an array and thej-th entry had an illegal value, theninfo= -(i*100+j), if thei-th argument is a scalar and had an illegal value, theninfo= -i.