36 const Dtype &index_dtype) = 0;
45 const Dtype &index_dtype) = 0;
69 const Tensor &query_points,
84 const Tensor &query_points,
double radius,
bool sort)
const = 0;
97 const Tensor &query_points,
double radius,
int max_knn)
const = 0;
Definition: NNSIndex.h:21
Dtype index_dtype_
Definition: NNSIndex.h:121
Dtype GetDtype() const
Definition: NNSIndex.cpp:24
virtual std::tuple< Tensor, Tensor, Tensor > SearchHybrid(const Tensor &query_points, double radius, int max_knn) const =0
virtual ~NNSIndex()
Definition: NNSIndex.h:25
NNSIndex(const NNSIndex &)=delete
NNSIndex & operator=(const NNSIndex &)=delete
size_t GetDatasetSize() const
Definition: NNSIndex.cpp:19
Device GetDevice() const
Definition: NNSIndex.cpp:26
virtual std::tuple< Tensor, Tensor, Tensor > SearchRadius(const Tensor &query_points, double radius, bool sort) const =0
virtual std::tuple< Tensor, Tensor, Tensor > SearchRadius(const Tensor &query_points, const Tensor &radii, bool sort) const =0
virtual bool SetTensorData(const Tensor &dataset_points, const Dtype &index_dtype)=0
virtual std::pair< Tensor, Tensor > SearchKnn(const Tensor &query_points, int knn) const =0
Tensor dataset_points_
Definition: NNSIndex.h:120
NNSIndex()
Default Constructor.
Definition: NNSIndex.h:24
Dtype GetIndexDtype() const
Definition: NNSIndex.cpp:28
int GetDimension() const
Definition: NNSIndex.cpp:14
virtual bool SetTensorData(const Tensor &dataset_points, double radius, const Dtype &index_dtype)=0
Definition: PinholeCameraIntrinsic.cpp:16