# Copyright Vespa.ai. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
vespa_add_library(searchlib_tensor OBJECT
    SOURCES
    angular_distance.cpp
    mips_distance_transform.cpp
    bitvector_visited_tracker.cpp
    bound_distance_function.cpp
    default_nearest_neighbor_index_factory.cpp
    dense_tensor_attribute.cpp
    dense_tensor_store.cpp
    direct_tensor_attribute.cpp
    direct_tensor_store.cpp
    distance_calculator.cpp
    distance_function_factory.cpp
    empty_subspace.cpp
    euclidean_distance.cpp
    fast_value_view.cpp
    geo_degrees_distance.cpp
    hamming_distance.cpp
    hash_set_visited_tracker.cpp
    hnsw_graph.cpp
    hnsw_index.cpp
    hnsw_index_explorer.cpp
    hnsw_index_saver.cpp
    hnsw_multi_best_neighbors.cpp
    hnsw_nodeid_mapping.cpp
    hnsw_single_best_neighbors.cpp
    hnsw_test_node.cpp
    imported_tensor_attribute_vector.cpp
    imported_tensor_attribute_vector_read_guard.cpp
    inv_log_level_generator.cpp
    large_subspaces_buffer_type.cpp
    nearest_neighbor_index.cpp
    nearest_neighbor_index_saver.cpp
    prenormalized_angular_distance.cpp
    serialized_fast_value_attribute.cpp
    serialized_tensor_ref.cpp
    small_subspaces_buffer_type.cpp
    subspace_type.cpp
    temporary_vector_store.cpp
    tensor_attribute.cpp
    tensor_attribute_explorer.cpp
    tensor_attribute_loader.cpp
    tensor_attribute_saver.cpp
    tensor_buffer_operations.cpp
    tensor_buffer_store.cpp
    tensor_buffer_type_mapper.cpp
    tensor_deserialize.cpp
    tensor_ext_attribute.cpp
    tensor_quantization.cpp
    tensor_store.cpp
    DEPENDS
)
