Skip to content

Commit 56daed0

Browse files
committed
fix: improve code formatting for clarity in rtree4d.cpp method implementations
1 parent b0ed5eb commit 56daed0

1 file changed

Lines changed: 8 additions & 6 deletions

File tree

cxx/src/pybind/rtree4d.cpp

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ void implement_rtree_4d_methods(nb::class_<RTree4D<T>>& cls) {
146146
const Eigen::Ref<const typename RTree4D<T>::CoordinateMatrix>&
147147
coordinates,
148148
const Eigen::Ref<const typename RTree4D<T>::ValueVector>& values,
149-
const Eigen::Ref<const typename RTree4D<T>::ValueVector>&
150-
sigma2) { self.packing(coordinates, values, sigma2); },
149+
const Eigen::Ref<const typename RTree4D<T>::ValueVector>& sigma2) {
150+
self.packing(coordinates, values, sigma2);
151+
},
151152
nb::arg("coordinates"), nb::arg("values"), nb::arg("sigma2"),
152153
kPackingDoc, nb::call_guard<nb::gil_scoped_release>())
153154
.def(
@@ -156,8 +157,9 @@ void implement_rtree_4d_methods(nb::class_<RTree4D<T>>& cls) {
156157
const Eigen::Ref<const typename RTree4D<T>::CoordinateMatrix>&
157158
coordinates,
158159
const Eigen::Ref<const typename RTree4D<T>::ValueVector>& values,
159-
const Eigen::Ref<const typename RTree4D<T>::ValueVector>&
160-
sigma2) { self.insert(coordinates, values, sigma2); },
160+
const Eigen::Ref<const typename RTree4D<T>::ValueVector>& sigma2) {
161+
self.insert(coordinates, values, sigma2);
162+
},
161163
nb::arg("coordinates"), nb::arg("values"), nb::arg("sigma2"),
162164
kInsertDoc, nb::call_guard<nb::gil_scoped_release>())
163165
.def(
@@ -200,8 +202,8 @@ void implement_rtree_4d_methods(nb::class_<RTree4D<T>>& cls) {
200202

201203
template <typename T>
202204
void init_rtree_4d_impl(nb::module_& m, std::string_view suffix) {
203-
auto cls = nb::class_<RTree4D<T>>(
204-
m, std::format("RTree4D{}", suffix).c_str(), kRTree4DDoc);
205+
auto cls = nb::class_<RTree4D<T>>(m, std::format("RTree4D{}", suffix).c_str(),
206+
kRTree4DDoc);
205207
cls.def(nb::init<>(), "Initialize a fresh 4D Cartesian R-tree.",
206208
nb::call_guard<nb::gil_scoped_release>());
207209
implement_rtree_4d_methods(cls);

0 commit comments

Comments
 (0)