-
Notifications
You must be signed in to change notification settings - Fork 157
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
Refactor of pairwise_linestring_distance
to use multilinestring_range
, adds support to multilinestring distance
#755
Conversation
thrust::next(_part_begin + _geometry_begin[i + 1]), | ||
_point_begin, | ||
_point_end}; | ||
} |
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.
Curious what you're using this for. A constructor that returns a slice of a multilinestring_range
?
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.
That's right. This is for the element accessor of multilinestirng_range
. When you access a single element in multilinestring_range
, you get a single multilinestring
.
return _point_end; | ||
} | ||
|
||
} // namespace cuspatial |
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.
What is the difference between a multilinestring_range
and a multilinestring_ref
?
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.
Conceptually multilinestring_range
is a non-owning object on an array of multilinestrings.
multilinestring_ref
is just a non owning object to a single multilinestring. Iterating on multilinestring_range
gives a multilinestring_ref
.
Co-authored-by: H. Thomson Comer <thomcom@gmail.com>
…into feature/multilinestring_distance_header_only
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 very nice. Various small doc suggestions only.
cpp/include/cuspatial/experimental/detail/geometry/linestring_ref.cuh
Outdated
Show resolved
Hide resolved
cpp/include/cuspatial/experimental/geometry_collection/multipoint_ref.cuh
Outdated
Show resolved
Hide resolved
rerun tests |
1 similar comment
rerun tests |
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!
@gpucibot merge |
Description
Note, this is the first part of
pairwise_linestring_distance
refactoring, part 1 of PR: #753Depends on #752
Contributes to #706, #703
Closes #745
Checklist