Skip to content

Commit c81fe46

Browse files
sc-42599: implement ivf pq index (#279)
Co-authored-by: Paris Morgan <[email protected]>
1 parent 9921660 commit c81fe46

20 files changed

+3528
-614
lines changed

src/include/concepts.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,14 @@ concept distance_function =
251251
template <class F, class U, class V>
252252
concept sub_distance_function =
253253
feature_vector<U> && feature_vector<V> &&
254+
// perhaps could also just use requires clause that f(u, v, i, j) is valid
254255
std::regular_invocable<F, U, V, size_t, size_t> &&
255256
std::regular_invocable<F, V, U, size_t, size_t> &&
256257
std::regular_invocable<F, U, U, size_t, size_t> &&
257258
std::regular_invocable<F, V, V, size_t, size_t>;
258259

260+
template <class F, class U, class V>
261+
concept uncached_sub_distance_function = sub_distance_function<F, U, V>;
259262
/**
260263
* @brief A concept for distance functions operating on subranges of a feature
261264
* vector, where the subrange is specified at construction time. Thereafter,

0 commit comments

Comments
 (0)