Skip to main content

cuvsNNDescentIndexGetDistances

Function cuvsNNDescentIndexGetDistances 

Source
pub unsafe extern "C" fn cuvsNNDescentIndexGetDistances(
    res: cuvsResources_t,
    index: cuvsNNDescentIndex_t,
    distances: *mut DLManagedTensor,
) -> cuvsError_t
Expand description

@brief Get the distances from a build NN_Descent index

This requires that the return_distances parameter was set when building the graph

@param[in] res cuvsResources_t opaque C handle @param[in] index cuvsNNDescentIndex_t Built NN-Descent index @param[out] distances Preallocated memory to store the output distances tensor @return cuvsError_t