Skip to content
This repository was archived by the owner on Jul 28, 2025. It is now read-only.

Pairwise Multipoint Equals Count function#1022

Merged
rapids-bot[bot] merged 63 commits intorapidsai:branch-23.06from
thomcom:feature/allpairs_point_equals_count
Apr 27, 2023
Merged

Pairwise Multipoint Equals Count function#1022
rapids-bot[bot] merged 63 commits intorapidsai:branch-23.06from
thomcom:feature/allpairs_point_equals_count

Conversation

@thomcom
Copy link
Copy Markdown
Contributor

@thomcom thomcom commented Mar 30, 2023

Closes #1020

Description

This contribution adds pairwise_multipoint_equals_count to the column and header-only APIs. pairwise_multipoint_equals_count counts the number of times that each point in the lhs occurs in the rhs.

auto result = pairwise_multipoint_equals_count(
    {{{0, 0}},{{1, 1, 2, 2}},{{0, 0}, {1, 1}, {2, 2}}},
    {
        {{0, 0}, {1, 1}, {2, 2}}
        {{0, 0}, {1, 1}, {2, 2}}
        {{0, 0}, {1, 1}, {2, 2}}
    }
)
result = {1, 2, 3}

Written while pairing with @isVoid.

Checklist

  • I am familiar with the Contributing Guidelines.
  • New or existing tests cover these changes.
  • The documentation is up to date with these changes.

@github-actions github-actions bot added cmake Related to CMake code or build configuration libcuspatial Relates to the cuSpatial C++ library labels Mar 30, 2023
@harrism
Copy link
Copy Markdown
Member

harrism commented Mar 31, 2023

Note skip-ci does nothing in PR titles.

@thomcom thomcom marked this pull request as ready for review March 31, 2023 18:37
@thomcom thomcom requested review from a team as code owners March 31, 2023 18:37
@thomcom thomcom requested review from harrism and trxcllnt March 31, 2023 18:37
@thomcom thomcom changed the title [skip-ci] Allpairs Multipoint Equals Count function Allpairs Multipoint Equals Count function Mar 31, 2023
@thomcom thomcom requested review from isVoid and removed request for trxcllnt March 31, 2023 18:37
@thomcom thomcom self-assigned this Mar 31, 2023
@thomcom thomcom added 3 - Ready for Review Ready for review by team improvement Improvement / enhancement to an existing function non-breaking Non-breaking change labels Mar 31, 2023
thomcom and others added 15 commits April 19, 2023 14:33
…com/cuspatial into feature/allpairs_point_equals_count
Co-authored-by: Mark Harris <783069+harrism@users.noreply.github.com>
Co-authored-by: Mark Harris <783069+harrism@users.noreply.github.com>
Co-authored-by: Mark Harris <783069+harrism@users.noreply.github.com>
…com/cuspatial into feature/allpairs_point_equals_count
Co-authored-by: Mark Harris <783069+harrism@users.noreply.github.com>
…count.cuh

Co-authored-by: Mark Harris <783069+harrism@users.noreply.github.com>
…com/cuspatial into feature/allpairs_point_equals_count
@thomcom thomcom mentioned this pull request Apr 19, 2023
3 tasks
namespace cuspatial {

/**
* @brief Compute the number of multipoint pairs that are equal.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not addressed yet. The original @brief is not accurate.

Comment on lines +59 to +62
* @tparam MultiPointRangeA Iterator over multipoints. Must meet the requirements of
* [LegacyRandomAccessIterator][LinkLRAI] and be device-accessible.
* @tparam MultiPointRangeB Iterator over multipoints. Must meet the requirements of
* [LegacyRandomAccessIterator][LinkLRAI] and be device-accessible.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be addressed.

@@ -0,0 +1,157 @@
/*
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file seems to be a duplicate of the one in the equality directory. Perhaps copied here accidentally?

Comment on lines +21 to +22
#include <cuspatial/experimental/pairwise_multipoint_equals_count.cuh>
#include <cuspatial/experimental/ranges/multipoint_range.cuh>
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be the culprit.

@thomcom
Copy link
Copy Markdown
Contributor Author

thomcom commented Apr 27, 2023

/merge

@rapids-bot rapids-bot bot merged commit e992329 into rapidsai:branch-23.06 Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

3 - Ready for Review Ready for review by team cmake Related to CMake code or build configuration conda Related to conda and conda configuration improvement Improvement / enhancement to an existing function libcuspatial Relates to the cuSpatial C++ library non-breaking Non-breaking change Python Related to Python code

Projects

Status: Review

Development

Successfully merging this pull request may close these issues.

[FEA]: Need a libcuspatial count_equal_points(lhs, rhs) function.

4 participants