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
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