MCPcopy Create free account
hub / github.com/VectorDB-NTU/RaBitQ-Library / metric_to_string

Function metric_to_string

python_bindings/bindings_common.hpp:29–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27}
28
29inline std::string metric_to_string(rabitqlib::MetricType metric) {
30 return metric == rabitqlib::METRIC_IP ? "ip" : "l2";
31}
32
33inline rabitqlib::RotatorType rotator_from_string(const std::string& method) {
34 if (method == "matrix") {

Callers 3

metricMethod · 0.85
metricMethod · 0.85
metricMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected