faiss_Index_compute_residual_n

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 n number of vectors @param x input vector, size (n x d) @param residuals output residual vectors, size (n x d) @param keys encoded index, as returned by search and assign

extern (C)
int
faiss_Index_compute_residual_n
(,,
const(float)* x
,
float* residuals
,
const(idx_t)* keys
)

Meta