Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use quadtree for
.contains_properly
#910Use quadtree for
.contains_properly
#910Changes from 37 commits
d9bc2fe
e6618fa
534f3fa
65191b0
00090e0
d7aa3cc
951391b
062d17c
077b54c
fc762eb
9eaad1d
2534d88
c410f03
5e1fc73
6457db5
76e30b2
f281d13
49d1512
96a6d16
47b2fa6
fe4cf46
3654452
bb0f5aa
6594790
199c62f
f8a388a
058b3e6
dac1af0
0d2a021
5485da9
d3eb406
d7370d2
fa6968c
5034c9a
f305257
203f956
1590542
5583dba
e2d3ee9
eb57b48
11911e3
d2b07d4
c4b91e8
1e57a33
3769cb1
092ce8c
f93a273
c92bc74
98a4f7a
4b38979
40bb07e
a81feb1
f0e80c1
75f7449
382caef
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One option would just be to change this output format before you consume it here. For the small-polygon-count version, just convert the bitmask into the same format output as the quadtree (all pairs): one row per intersection, containing a polygon index and a point index.
Then contains_properly only needs to convert the results if the user requests pairwise instead of all-pairs.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Turns out it is really easy to change the output format with a
cudf.stack()
call, so I'm investigating this approach to reduce code-paths.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've finished that refactor, it makes solving the discrete math problem at the end harder but I'm ok with it for the current iteration of the architecture.