11/*
2- * SPDX-FileCopyrightText: Copyright (c) 2024-2025 , NVIDIA CORPORATION.
2+ * SPDX-FileCopyrightText: Copyright (c) 2024-2026 , NVIDIA CORPORATION.
33 * SPDX-License-Identifier: Apache-2.0
44 */
55
@@ -2933,17 +2933,17 @@ void reset_index(const raft::resources& res, index<uint8_t, int64_t>* index);
29332933 * ivf_flat::index<uint8_t, int64_t> index(res, index_params, D);
29342934 * ivf_flat::helpers::reset_index(res, &index);
29352935 * // resize the first IVF list to hold 5 records
2936- * auto spec = list_spec<uint32_t, uint8_t , int64_t>{
2937- * index-> dim(), index-> conservative_memory_allocation()};
2936+ * auto spec = list_spec<uint32_t, float , int64_t>{
2937+ * index. dim(), index. conservative_memory_allocation()};
29382938 * uint32_t new_size = 5;
2939- * ivf::resize_list(res, list , spec, new_size, 0);
2939+ * ivf::resize_list(res, index.lists()[0] , spec, new_size, 0);
29402940 * raft::update_device(index.list_sizes(), &new_size, 1, stream);
29412941 * // recompute the internal state of the index
29422942 * ivf_flat::helpers::recompute_internal_state(res, index);
29432943 * @endcode
29442944 *
29452945 * @param[in] res raft resource
2946- * @param[inout] index pointer to IVF-PQ index
2946+ * @param[inout] index pointer to IVF-Flat index
29472947 */
29482948void recompute_internal_state (const raft::resources& res, index<float , int64_t >* index);
29492949
@@ -2961,17 +2961,17 @@ void recompute_internal_state(const raft::resources& res, index<float, int64_t>*
29612961 * ivf_flat::index<uint8_t, int64_t> index(res, index_params, D);
29622962 * ivf_flat::helpers::reset_index(res, &index);
29632963 * // resize the first IVF list to hold 5 records
2964- * auto spec = list_spec<uint32_t, uint8_t , int64_t>{
2965- * index-> dim(), index-> conservative_memory_allocation()};
2964+ * auto spec = list_spec<uint32_t, half , int64_t>{
2965+ * index. dim(), index. conservative_memory_allocation()};
29662966 * uint32_t new_size = 5;
2967- * ivf::resize_list(res, list , spec, new_size, 0);
2967+ * ivf::resize_list(res, index.lists()[0] , spec, new_size, 0);
29682968 * raft::update_device(index.list_sizes(), &new_size, 1, stream);
29692969 * // recompute the internal state of the index
29702970 * ivf_flat::helpers::recompute_internal_state(res, index);
29712971 * @endcode
29722972 *
29732973 * @param[in] res raft resource
2974- * @param[inout] index pointer to IVF-PQ index
2974+ * @param[inout] index pointer to IVF-Flat index
29752975 */
29762976void recompute_internal_state (const raft::resources& res, index<half, int64_t >* index);
29772977
@@ -2989,17 +2989,17 @@ void recompute_internal_state(const raft::resources& res, index<half, int64_t>*
29892989 * ivf_flat::index<uint8_t, int64_t> index(res, index_params, D);
29902990 * ivf_flat::helpers::reset_index(res, &index);
29912991 * // resize the first IVF list to hold 5 records
2992- * auto spec = list_spec<uint32_t, uint8_t , int64_t>{
2993- * index-> dim(), index-> conservative_memory_allocation()};
2992+ * auto spec = list_spec<uint32_t, int8_t , int64_t>{
2993+ * index. dim(), index. conservative_memory_allocation()};
29942994 * uint32_t new_size = 5;
2995- * ivf::resize_list(res, list , spec, new_size, 0);
2995+ * ivf::resize_list(res, index.lists()[0] , spec, new_size, 0);
29962996 * raft::update_device(index.list_sizes(), &new_size, 1, stream);
29972997 * // recompute the internal state of the index
29982998 * ivf_flat::helpers::recompute_internal_state(res, index);
29992999 * @endcode
30003000 *
30013001 * @param[in] res raft resource
3002- * @param[inout] index pointer to IVF-PQ index
3002+ * @param[inout] index pointer to IVF-Flat index
30033003 */
30043004void recompute_internal_state (const raft::resources& res, index<int8_t , int64_t >* index);
30053005
@@ -3018,9 +3018,9 @@ void recompute_internal_state(const raft::resources& res, index<int8_t, int64_t>
30183018 * ivf_flat::helpers::reset_index(res, &index);
30193019 * // resize the first IVF list to hold 5 records
30203020 * auto spec = list_spec<uint32_t, uint8_t, int64_t>{
3021- * index-> dim(), index-> conservative_memory_allocation()};
3021+ * index. dim(), index. conservative_memory_allocation()};
30223022 * uint32_t new_size = 5;
3023- * ivf::resize_list(res, list , spec, new_size, 0);
3023+ * ivf::resize_list(res, index.lists()[0] , spec, new_size, 0);
30243024 * raft::update_device(index.list_sizes(), &new_size, 1, stream);
30253025 * // recompute the internal state of the index
30263026 * ivf_flat::helpers::recompute_internal_state(res, index);
0 commit comments