fix: update batch nns func name

This commit is contained in:
Atticus Zhou 2024-06-18 14:44:55 +08:00 committed by GitHub
parent b930c340f5
commit be9fe53888
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ void define_kdtree(py::module& m) {
The squared distances to the k nearest neighbors.
)""")
.def(
"batch_nns_search",
"batch_nearest_neighbor_search",
[](const KdTree<PointCloud>& kdtree, const Eigen::MatrixXd& pts) {
std::vector<size_t> k_indices(pts.rows(), -1);
std::vector<double> k_sq_dists(pts.rows(), std::numeric_limits<double>::max());