Function faiss_sys::faiss_Index_add_with_ids
[−]
[src]
pub unsafe extern "C" fn faiss_Index_add_with_ids(
index: *mut FaissIndex,
n: idx_t,
x: *const f32,
xids: *const c_long
) -> c_int
Same as add, but stores xids instead of sequential ids.
The default implementation fails with an assertion, as it is not supported by all indexes.
@param index opaque pointer to index object @param xids if non-null, ids to store for the vectors (size n)