1#ifndef KNNCOLLE_BUILDER_HPP
2#define KNNCOLLE_BUILDER_HPP
21template<
class Matrix_,
typename Float_>
42 std::shared_ptr<Prebuilt<typename Matrix_::dimension_type, typename Matrix_::index_type, Float_> >
build_shared(
const Matrix_& data)
const {
43 return std::shared_ptr<Prebuilt<typename Matrix_::dimension_type, typename Matrix_::index_type, Float_> >(
build_raw(data));
50 std::unique_ptr<Prebuilt<typename Matrix_::dimension_type, typename Matrix_::index_type, Float_> >
build_unique(
const Matrix_& data)
const {
51 return std::unique_ptr<Prebuilt<typename Matrix_::dimension_type, typename Matrix_::index_type, Float_> >(
build_raw(data));
Interface for prebuilt nearest-neighbor indices.
Interface to build nearest-neighbor search indices.
Definition Builder.hpp:22
virtual Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > * build_raw(const Matrix_ &data) const =0
std::shared_ptr< Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > > build_shared(const Matrix_ &data) const
Definition Builder.hpp:42
std::unique_ptr< Prebuilt< typename Matrix_::dimension_type, typename Matrix_::index_type, Float_ > > build_unique(const Matrix_ &data) const
Definition Builder.hpp:50
Interface for prebuilt nearest-neighbor search indices.
Definition Prebuilt.hpp:28
Collection of KNN algorithms.
Definition Bruteforce.hpp:22