Count the number of equal points in multipoint pairs.
Count the number of equal points in multipoint pairs.Given two ranges of multipoints, this function counts points in the left-hand multipoint that exist in the corresponding right-hand multipoint.
lhs: { {0, 0} } rhs: { {0, 0}, {1, 1}, {2, 2}, {3, 3} } count: { 1 }
lhs: { {0, 0}, {1, 1}, {2, 2}, {3, 3} } rhs: { {0, 0} } count: { 1 }
lhs: { { {3, 3}, {3, 3}, {0, 0} }, { {0, 0}, {1, 1}, {2, 2} }, { {0, 0} } } rhs: { { {0, 0}, {2, 2}, {1, 1} }, { {2, 2}, {0, 0}, {1, 1} }, { {1, 1} } } count: { 1, 3, 0 }
multipoint_range.cuh
and the output iterator must be able to accept for storage values of type uint32_t
.[in] | lhs_first | multipoint_range of first array of multipoints |
[in] | rhs_first | multipoint_range of second array of multipoints |
[out] | count_first | beginning of range of uint32_t counts |
[in] | stream | The CUDA stream on which to perform computations and allocate memory. |
MultiPointRangeA | The multipolygon range to compare point equality from |
MultiPointRangeB | The multipolygon range to compare point equality to |
OutputIt | Iterator over uint32_t. Must meet the requirements of LegacyRandomAccessIterator and be device-accessible and mutable. |