Function faiss_sys::faiss_Index_search
[−]
[src]
pub unsafe extern "C" fn faiss_Index_search(
index: *const FaissIndex,
n: idx_t,
x: *const f32,
k: idx_t,
distances: *mut f32,
labels: *mut idx_t
) -> c_int
query n vectors of dimension d to the index.
return at most k vectors. If there are not enough results for a query, the result array is padded with -1s.
@param index opaque pointer to index object @param x input vectors to search, size n * d @param labels output labels of the NNs, size nk @param distances output pairwise distances, size nk