Function faiss_sys::faiss_Index_compute_residual [] [src]

pub unsafe extern "C" fn faiss_Index_compute_residual(
    index: *const FaissIndex,
    x: *const f32,
    residual: *mut f32,
    key: idx_t
) -> c_int

Computes a residual vector after indexing encoding.

The residual vector is the difference between a vector and the reconstruction that can be decoded from its representation in the index. The residual can be used for multiple-stage indexing methods, like IndexIVF's methods.

@param index opaque pointer to index object @param x input vector, size d @param residual output residual vector, size d @param key encoded index, as returned by search and assign