Skip to content

Commit

Permalink
Improve: Expose metric kind in index_dense_gt (#537)
Browse files Browse the repository at this point in the history
  • Loading branch information
rschu1ze authored Nov 20, 2024
1 parent 49b971b commit 3d7a901
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/usearch/index_dense.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,7 @@ class index_dense_gt {
void change_metric(metric_t metric) { metric_ = std::move(metric); }

scalar_kind_t scalar_kind() const { return metric_.scalar_kind(); }
metric_kind_t metric_kind() const { return metric_.metric_kind(); }
std::size_t bytes_per_vector() const { return metric_.bytes_per_vector(); }
std::size_t scalar_words() const { return metric_.scalar_words(); }
std::size_t dimensions() const { return metric_.dimensions(); }
Expand Down

0 comments on commit 3d7a901

Please sign in to comment.