Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython_plus_experiments
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julien Jerphanion
cython_plus_experiments
Commits
f6678689
Commit
f6678689
authored
Apr 19, 2021
by
Julien Jerphanion
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[WIP] KDTree implementation
Change logging
parent
afd1a807
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
kdtree/main.pyx
kdtree/main.pyx
+3
-4
No files found.
kdtree/main.pyx
View file @
f6678689
...
...
@@ -154,12 +154,11 @@ cdef cypclass Node activable:
self
.
n_dims
=
n_dims
if
(
depth
<
0
)
or
(
nn
<=
0
):
if
(
depth
<
0
)
or
(
nn
<=
1
):
return
printf
(
"Depth %d
\
n
Splitting dimension "
"%d
\
n
Split indice %d
\
n
Sorting in [%d, %d]
\
n
\
n
\
n
"
,
depth
,
dim
,
split_index
,
start
,
end
)
printf
(
"Depth %d on dim %d: [%d, %d) med: %d
\
n
\
n
\
n
"
,
depth
,
dim
,
start
,
end
,
split_index
)
partition_node_indices
(
points
+
start
,
indices
+
start
,
dim
,
nn
//
2
,
n_dims
,
nn
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment