Searched refs:sorted_indices (Results 1 – 1 of 1) sorted by relevance
| /petsc/src/vec/is/utils/ |
| H A D | kdtree.c | 112 static PetscErrorCode PetscKDTreeVerifySortedIndices(PetscKDTree tree, PetscCount sorted_indices[],… in PetscKDTreeVerifySortedIndices() argument 118 PetscCall(PetscArraycpy(temp, &sorted_indices[0 * num_coords + start], range_size)); in PetscKDTreeVerifySortedIndices() 124 PetscCall(PetscFindCount(sorted_indices[d * num_coords + i], range_size, temp, &location)); in PetscKDTreeVerifySortedIndices() 125 …nt_FMT " from %" PetscInt_FMT " dimensional index in 0th dimension", sorted_indices[d * num_coords… in PetscKDTreeVerifySortedIndices() 138 static PetscErrorCode PetscKDTreeBuildStemAndLeaves(KDTreeBuild kd_build, PetscCount sorted_indices… in PetscKDTreeBuildStemAndLeaves() argument 145 …if (kd_build->debug_build) PetscCall(PetscKDTreeVerifySortedIndices(tree, sorted_indices, temp, st… in PetscKDTreeBuildStemAndLeaves() 158 PetscCall(PetscArraycpy(bucket_indices, &sorted_indices[start], leaf->count)); in PetscKDTreeBuildStemAndLeaves() 174 PetscCount median_idx = sorted_indices[median], medianp1_idx = sorted_indices[median + 1]; in PetscKDTreeBuildStemAndLeaves() 184 PetscCall(PetscArraycpy(temp, &sorted_indices[0 * num_coords + start], end - start)); in PetscKDTreeBuildStemAndLeaves() 191 …if (lower < median && PetscKDTreeSortFunc(sorted_indices[d * num_coords + i], median_idx, tree, ax… in PetscKDTreeBuildStemAndLeaves() [all …]
|