knn_api.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2019-2025, NVIDIA CORPORATION.
3  * SPDX-License-Identifier: Apache-2.0
4  */
5 
6 #pragma once
7 
8 #include <cuml/cuml_api.h>
9 
10 #include <stdbool.h>
11 #include <stdint.h>
12 
13 #ifdef __cplusplus
14 extern "C" {
15 #endif
16 
43  float** input,
44  int* size,
45  int n_params,
46  int D,
47  float* search_items,
48  int n,
49  int64_t* res_I,
50  float* res_D,
51  int k,
52  bool rowMajorIndex,
53  bool rowMajorQuery,
54  int metric_type,
55  float metric_arg,
56  bool expanded);
57 
58 #ifdef __cplusplus
59 }
60 #endif
int cumlHandle_t
Definition: cuml_api.h:26
cumlError_t
Definition: cuml_api.h:28
cumlError_t knn_search(const cumlHandle_t handle, float **input, int *size, int n_params, int D, float *search_items, int n, int64_t *res_I, float *res_D, int k, bool rowMajorIndex, bool rowMajorQuery, int metric_type, float metric_arg, bool expanded)
Flat C API function to perform a brute force knn on a series of input arrays and combine the results ...