Lines Matching refs:right

23 …scErrorCode PetscSortIntWithPermutation_Private(const PetscInt v[], PetscInt vdx[], PetscInt right)  in PetscSortIntWithPermutation_Private()  argument
28 if (right <= 1) { in PetscSortIntWithPermutation_Private()
29 if (right == 1) { in PetscSortIntWithPermutation_Private()
34 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortIntWithPermutation_Private()
37 for (i = 1; i <= right; i++) { in PetscSortIntWithPermutation_Private()
45 PetscCall(PetscSortIntWithPermutation_Private(v, vdx + last + 1, right - (last + 1))); in PetscSortIntWithPermutation_Private()
93 …ErrorCode PetscSortRealWithPermutation_Private(const PetscReal v[], PetscInt vdx[], PetscInt right) in PetscSortRealWithPermutation_Private() argument
99 if (right <= 1) { in PetscSortRealWithPermutation_Private()
100 if (right == 1) { in PetscSortRealWithPermutation_Private()
105 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortRealWithPermutation_Private()
108 for (i = 1; i <= right; i++) { in PetscSortRealWithPermutation_Private()
116 PetscCall(PetscSortRealWithPermutation_Private(v, vdx + last + 1, right - (last + 1))); in PetscSortRealWithPermutation_Private()
165 …PetscErrorCode PetscSortStrWithPermutation_Private(const char *v[], PetscInt vdx[], PetscInt right) in PetscSortStrWithPermutation_Private() argument
172 if (right <= 1) { in PetscSortStrWithPermutation_Private()
173 if (right == 1) { in PetscSortStrWithPermutation_Private()
179 SWAP(vdx[0], vdx[right / 2], tmp); in PetscSortStrWithPermutation_Private()
182 for (i = 1; i <= right; i++) { in PetscSortStrWithPermutation_Private()
191 PetscCall(PetscSortStrWithPermutation_Private(v, vdx + last + 1, right - (last + 1))); in PetscSortStrWithPermutation_Private()