Home
last modified time | relevance | path

Searched refs:vdx (Results 1 – 1 of 1) sorted by relevance

/petsc/src/sys/utils/
H A Dsortip.c23 static PetscErrorCode PetscSortIntWithPermutation_Private(const PetscInt v[], PetscInt vdx[], Petsc… in PetscSortIntWithPermutation_Private() argument
30 if (v[vdx[0]] > v[vdx[1]]) SWAP(vdx[0], vdx[1], tmp); in PetscSortIntWithPermutation_Private()
34 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortIntWithPermutation_Private()
35 vl = v[vdx[0]]; in PetscSortIntWithPermutation_Private()
38 if (v[vdx[i]] < vl) { in PetscSortIntWithPermutation_Private()
40 SWAP(vdx[last], vdx[i], tmp); in PetscSortIntWithPermutation_Private()
43 SWAP(vdx[0], vdx[last], tmp); in PetscSortIntWithPermutation_Private()
44 PetscCall(PetscSortIntWithPermutation_Private(v, vdx, last - 1)); in PetscSortIntWithPermutation_Private()
45 PetscCall(PetscSortIntWithPermutation_Private(v, vdx + last + 1, right - (last + 1))); in PetscSortIntWithPermutation_Private()
93 static PetscErrorCode PetscSortRealWithPermutation_Private(const PetscReal v[], PetscInt vdx[], Pet… in PetscSortRealWithPermutation_Private() argument
[all …]