R/RcppExports.R
cpp_knn.Rd
Find K nearest neighbors
cpp_knn(dist_mat, query_idx, k)
Distance matrix
Query index (0-based)
Number of neighbors
Neighbor indices (0-based)