28 #include "pr_queue_k.h"
68 for (i = 0; i <
n_pts; i++) {
74 for (i = 0; i < k; i++) {
75 dd[i] = mk.ith_smallest_key(i);
76 nn_idx[i] = mk.ith_smallest_info(i);
92 for (i = 0; i <
n_pts; i++) {
95 if (sqDist <= sqRad &&
101 for (i = 0; i < k; i++) {
103 dd[i] = mk.ith_smallest_key(i);
105 nn_idx[i] = mk.ith_smallest_info(i);
int annkFRSearch(ANNpoint q, ANNdist sqRad, int k=0, ANNidxArray nn_idx=NULL, ANNdistArray dd=NULL, double eps=0.0)
DLL_API ANNdist annDist(int dim, ANNpoint p, ANNpoint q)
ANNbruteForce(ANNpointArray pa, int n, int dd)
void annkSearch(ANNpoint q, int k, ANNidxArray nn_idx, ANNdistArray dd, double eps=0.0)
void annError(const char *msg, ANNerr level)
const ANNbool ANN_ALLOW_SELF_MATCH