Function faiss_sys::faiss_kmeans_clustering [] [src]

pub unsafe extern "C" fn faiss_kmeans_clustering(
    d: usize,
    n: usize,
    k: usize,
    x: *const f32,
    centroids: *mut f32,
    q_error: *mut f32
) -> c_int

simplified interface

@param d dimension of the data @param n nb of training vectors @param k nb of output centroids @param x training set (size n * d) @param centroids output centroids (size k * d) @param q_error final quantization error @return error code