PLASMA  2.8.0
PLASMA - Parallel Linear Algebra for Scalable Multi-core Architectures
void CORE_cswap ( int  m,
int  n,
PLASMA_Complex32_t *  Q,
int  ldq,
const PLASMA_Complex32_t *  work,
const int *  perm,
int  start,
int  end 
)

CORE_cswap - Extract the eigenvectors in the range [start,end-1] from work and copy them in order into the Q matrix thanks to the given permutation.

Parameters
[in]mm specifies the number of entries in each eigenvector, i.e. the number of rows of the matrices Q and Work.
[in]nn specifies the number of eigenvectors to copy from work to Q, i.e. the number of columns of the matrices W and work.
[out]QOn entry, matrix of size LDQ -by- n. On exit, Q will contain the n sorted eigenvectors.
[in]ldqldq specifies the leading dimension of Q. ldq >= max(1,m)
[in]workOn entry work contains the non-sorted eigenvectors and is of dimension m-by-n.
[in]permThe permutation array used to copy work into Q. On entry, the i-th eigenvector is stored in the column perm[i] of work, and is copied to the i-th column of Q.
[in]startstart specifies the first column index to be considered by this kernel.
[in]endend specifies the last column index to be considered by this kernel