-
Notifications
You must be signed in to change notification settings - Fork 156
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
Introduce multilinestring_range
structure, simplifies point-linestring distance API
#747
Introduce multilinestring_range
structure, simplifies point-linestring distance API
#747
Conversation
…into feature/multipoint_array
Co-authored-by: H. Thomson Comer <thomcom@gmail.com>
…l into feature/multipoint_array
…into feature/multilinestring_array
return multipoint_ref<VecIterator>{_points_begin + _geometry_begin[idx], | ||
_points_begin + _geometry_begin[idx + 1]}; |
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 had to revert this change in #731 because I need to use this method in device code. The previous proposal requires creating a transform iterator and dereference it. Not all code path is available on device and is expensive.
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.
Awesome functionality to make life easier and reduce bugs.
cpp/include/cuspatial/experimental/detail/point_linestring_distance.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/detail/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/point_linestring_distance.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/point_linestring_distance.cuh
Outdated
Show resolved
Hide resolved
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.
Looks good!
cpp/include/cuspatial/experimental/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
…e.cuh Co-authored-by: Mark Harris <mharris@nvidia.com>
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.
Cool!
cpp/include/cuspatial/experimental/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/ranges/multilinestring_range.cuh
Outdated
Show resolved
Hide resolved
Approvin |
@gpucibot merge |
Description
Follow up to #731 , this PR introduces a new range object named
multilinestring_range
and simplifies the point-linestring distance API. Closes #705 .Checklist