aboutsummaryrefslogtreecommitdiffstats
path: root/searchlib
diff options
context:
space:
mode:
authorArne Juul <arnej@verizonmedia.com>2020-03-24 12:27:32 +0000
committerArne Juul <arnej@verizonmedia.com>2020-03-24 12:27:32 +0000
commiteff4e99de2506232afab12f1f984ba88958506d2 (patch)
tree8d683d4f6486fd2653db7e77c6665476bf0cc70b /searchlib
parent5cc83640d058ef6e905093c7eafdeffc3647dc07 (diff)
add documentation comment
Diffstat (limited to 'searchlib')
-rw-r--r--searchlib/src/vespa/searchlib/tensor/distance_function_factory.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/searchlib/src/vespa/searchlib/tensor/distance_function_factory.h b/searchlib/src/vespa/searchlib/tensor/distance_function_factory.h
index 0faab5217cf..c86e40279bc 100644
--- a/searchlib/src/vespa/searchlib/tensor/distance_function_factory.h
+++ b/searchlib/src/vespa/searchlib/tensor/distance_function_factory.h
@@ -8,6 +8,10 @@
namespace search::tensor {
+/**
+ * Create a distance function object customized for the given metric
+ * variant and cell type.
+ **/
DistanceFunction::UP
make_distance_function(search::attribute::DistanceMetric variant,
vespalib::eval::ValueType::CellType cell_type);