Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add const to KNN handle #157

Merged
merged 1 commit into from
Feb 22, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cpp/include/raft/spatial/knn/knn.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ using deviceAllocator = raft::mr::device::allocator;
* form (e.g., without raising to the 1/p power).
*/
inline void brute_force_knn(
raft::handle_t &handle, std::vector<float *> &input, std::vector<int> &sizes,
int D, float *search_items, int n, int64_t *res_I, float *res_D, int k,
bool rowMajorIndex = false, bool rowMajorQuery = false,
raft::handle_t const &handle, std::vector<float *> &input,
std::vector<int> &sizes, int D, float *search_items, int n, int64_t *res_I,
float *res_D, int k, bool rowMajorIndex = false, bool rowMajorQuery = false,
distance::DistanceType metric = distance::DistanceType::L2Unexpanded,
float metric_arg = 2.0f, bool expanded = false) {
ASSERT(input.size() == sizes.size(),
Expand Down