![]() |
![]()
| ![]() |
![]()
NAMEHPL_perm - Combine 2 index arrays - Generate the permutation. SYNOPSIS#include "hpl.h" void HPL_perm( const int N, int * LINDXA, int * LINDXAU, int * IWORK ); DESCRIPTIONHPL_perm combines two index arrays and generate the corresponding permutation. First, this function computes the inverse of LINDXA, and then combine it with LINDXAU. Second, in order to be able to perform the permutation in place, LINDXAU is overwritten by the sequence of permutation producing the same result. What we ultimately want to achieve is: U[LINDXAU[i]] := U[LINDXA[i]] for i in [0..N). After the call to this function, this in place permutation can be performed by for i in [0..N) swap U[i] with U[LINDXAU[i]]. ARGUMENTS
SEE ALSOHPL_plindx1 (3), HPL_pdlaswp01N (3), HPL_pdlaswp01T (3).
|