Function faiss_sys::faiss_Index_add
[−]
[src]
pub unsafe extern "C" fn faiss_Index_add(
index: *mut FaissIndex,
n: idx_t,
x: *const f32
) -> c_int
Add n vectors of dimension d to the index.
Vectors are implicitly assigned labels ntotal .. ntotal + n - 1 This function slices the input vectors in chuncks smaller than blocksize_add and calls add_core. @param index opaque pointer to index object @param x input matrix, size n * d