59 "FixedRadiusIndex::SetTensorData witout radius not " 66 int knn)
const override {
71 const Tensor& query_points,
const Tensor& radii)
const override {
73 "FixedRadiusIndex::SearchRadius with multi-radii not " 87 const Tensor& query_points,
double radius)
const override;
91 int max_knn)
const override {
113 *ptr =
static_cast<int32_t*
>(neighbors_index.GetDataPtr());
118 Tensor::Empty({int64_t(num)}, Dtype::FromType<T>(), device_);
119 *ptr =
static_cast<T*
>(neighbors_distance.GetDataPtr());
123 return static_cast<const int32_t*
>(neighbors_index.GetDataPtr());
127 return static_cast<T*
>(neighbors_distance.GetDataPtr());
135 Tensor neighbors_distance;
const int64_t max_hash_tabls_size
Definition: FixedRadiusIndex.h:96
std::tuple< Tensor, Tensor, Tensor > SearchRadius(const Tensor &query_points, const Tensor &radii) const override
Definition: FixedRadiusIndex.h:70
FixedRadiusIndex for nearest neighbor range search.
Definition: FixedRadiusIndex.h:42
void AllocIndices(int32_t **ptr, size_t num)
Definition: FixedRadiusIndex.h:111
Definition: NNSIndex.h:40
void LogError(const char *format, const Args &... args)
Definition: Console.h:176
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t int32_t
Definition: K4aPlugin.cpp:398
const double hash_table_size_factor
Definition: FixedRadiusIndex.h:95
NeighborSearchAllocator(Device device)
Definition: FixedRadiusIndex.h:109
static const Dtype Int32
Definition: Dtype.h:44
FixedRadiusIndex()
Default Constructor.
Definition: FixedRadiusIndex.cpp:40
static Tensor Empty(const SizeVector &shape, Dtype dtype, const Device &device=Device("CPU:0"))
Create a tensor with uninitilized values.
Definition: Tensor.cpp:176
const T * DistancesPtr() const
Definition: FixedRadiusIndex.h:126
~FixedRadiusIndex()
Definition: FixedRadiusIndex.cpp:47
std::vector< int64_t > points_row_splits_
Definition: FixedRadiusIndex.h:99
const Tensor & NeighborsIndex() const
Definition: FixedRadiusIndex.h:130
Tensor hash_table_index_
Definition: FixedRadiusIndex.h:103
FixedRadiusIndex & operator=(const FixedRadiusIndex &)=delete
const Tensor & NeighborsDistance() const
Definition: FixedRadiusIndex.h:131
Definition: PinholeCameraIntrinsic.cpp:35
std::vector< uint32_t > hash_table_splits_
Definition: FixedRadiusIndex.h:100
std::pair< Tensor, Tensor > SearchHybrid(const Tensor &query_points, float radius, int max_knn) const override
Definition: FixedRadiusIndex.h:89
bool SetTensorData(const Tensor &dataset_points) override
Definition: FixedRadiusIndex.h:57
Definition: FixedRadiusIndex.h:107
std::pair< Tensor, Tensor > SearchKnn(const Tensor &query_points, int knn) const override
Definition: FixedRadiusIndex.h:65
Tensor hash_table_cell_splits_
Definition: FixedRadiusIndex.h:102
void AllocDistances(T **ptr, size_t num)
Definition: FixedRadiusIndex.h:116
std::vector< uint32_t > out_hash_table_splits_
Definition: FixedRadiusIndex.h:101
const int32_t * IndicesPtr() const
Definition: FixedRadiusIndex.h:122