-
Notifications
You must be signed in to change notification settings - Fork 915
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate lists/set_operations to pylibcudf (#16190)
Apart of #15162 Authors: - Matthew Murray (https://github.com/Matt711) Approvers: - Thomas Li (https://github.com/lithomas1) URL: #16190
- Loading branch information
Showing
4 changed files
with
339 additions
and
1 deletion.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
python/cudf/cudf/_lib/pylibcudf/libcudf/lists/set_operations.pxd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Copyright (c) 2021-2024, NVIDIA CORPORATION. | ||
|
||
from libcpp.memory cimport unique_ptr | ||
|
||
from cudf._lib.pylibcudf.libcudf.column.column cimport column | ||
from cudf._lib.pylibcudf.libcudf.lists.lists_column_view cimport ( | ||
lists_column_view, | ||
) | ||
from cudf._lib.pylibcudf.libcudf.types cimport nan_equality, null_equality | ||
|
||
|
||
cdef extern from "cudf/lists/set_operations.hpp" namespace "cudf::lists" nogil: | ||
cdef unique_ptr[column] difference_distinct( | ||
const lists_column_view& lhs, | ||
const lists_column_view& rhs, | ||
null_equality nulls_equal, | ||
nan_equality nans_equal | ||
) except + | ||
|
||
cdef unique_ptr[column] have_overlap( | ||
const lists_column_view& lhs, | ||
const lists_column_view& rhs, | ||
null_equality nulls_equal, | ||
nan_equality nans_equal | ||
) except + | ||
|
||
cdef unique_ptr[column] intersect_distinct( | ||
const lists_column_view& lhs, | ||
const lists_column_view& rhs, | ||
null_equality nulls_equal, | ||
nan_equality nans_equal | ||
) except + | ||
|
||
cdef unique_ptr[column] union_distinct( | ||
const lists_column_view& lhs, | ||
const lists_column_view& rhs, | ||
null_equality nulls_equal, | ||
nan_equality nans_equal | ||
) except + |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters