-
Notifications
You must be signed in to change notification settings - Fork 154
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 multipoint_range
interface; Refactors point_distance
API to support multipoint to multipoint distance.
#731
Introduce multipoint_range
interface; Refactors point_distance
API to support multipoint to multipoint distance.
#731
Conversation
…into feature/multipoint_array
Multipoint_array
interface; Refactors point_distance
API to support multipoint to multipoint distance.multipoint_array
interface; Refactors point_distance
API to support multipoint to multipoint distance.
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 like this interface, definitely in the direction of simplifying the way we deal with nested iterators.
cpp/include/cuspatial/experimental/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
Co-authored-by: H. Thomson Comer <thomcom@gmail.com>
…l into feature/multipoint_array
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.
Looking good. I have some questions / comments.
std::optional<cudf::device_span<cudf::size_type const>> multipoints1_offset, | ||
cudf::column_view const& points1_xy, | ||
std::optional<cudf::device_span<cudf::size_type const>> multipoints2_offset, | ||
cudf::column_view const& points2_xy, |
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 think it would be clearer to have the point columns before their optional multipoint offset parameters.
std::optional<cudf::device_span<cudf::size_type const>> multipoints1_offset, | |
cudf::column_view const& points1_xy, | |
std::optional<cudf::device_span<cudf::size_type const>> multipoints2_offset, | |
cudf::column_view const& points2_xy, | |
cudf::column_view const& points1_xy, | |
std::optional<cudf::device_span<cudf::size_type const>> multipoints1_offset, | |
cudf::column_view const& points2_xy, | |
std::optional<cudf::device_span<cudf::size_type const>> multipoints2_offset, |
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.
Seems reasonable to me as well.
Should we update https://github.com/rapidsai/cuspatial/blob/branch-22.12/cpp/include/cuspatial/distance/point_linestring_distance.hpp and https://github.com/rapidsai/cuspatial/blob/branch-22.12/cpp/include/cuspatial/point_linestring_nearest_points.hpp too?
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.
oh, I didn't realize there are multiple APIs that follow this style. I would say leave it alone then.
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.
Oops, I forgot to revert this suggestion before I merge. Will address in #734
cpp/include/cuspatial/experimental/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/detail/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/detail/array_view/multipoint_array.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/geometry_collection/multipoint.cuh
Outdated
Show resolved
Hide resolved
multipoint_array
interface; Refactors point_distance
API to support multipoint to multipoint distance.multipoint_range
interface; Refactors point_distance
API to support multipoint to multipoint distance.
@gpucibot merge |
This PR adds python bindings to Point-point distance. Depend on #731 Reverts change to comment: #731 (comment) Close #578 Authors: - Michael Wang (https://github.com/isVoid) Approvers: - Mark Harris (https://github.com/harrism) - H. Thomson Comer (https://github.com/thomcom) URL: #734
…ing distance API (#747) Follow up to #731 , this PR introduces a new range object named `multilinestring_range` and simplifies the point-linestring distance API. Closes #705 . Authors: - Michael Wang (https://github.com/isVoid) Approvers: - Mark Harris (https://github.com/harrism) - H. Thomson Comer (https://github.com/thomcom) URL: #747
Description
closes #704
Contributes to #703
This PR introduces
Multipoint_range
interface, and simplifies the API ofpoint_distance
. Also updates thepoint_distance
to support multipoint-multipoint distance.Checklist