File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,8 @@ std::unique_ptr<column> generate_labels(
7373 * 1. a `search_keys` column (keys being searched *for*)
7474 * 2. a `search_space` column (the space being searched)
7575 *
76+ * Neither list should have repeated keys within each list row.
77+ *
7678 * The function's output is a LISTS column, where each row[i] contains the list
7779 * indices of all matches between `search_keys[i]` and `search_space[i]`.
7880 * i.e.
@@ -94,7 +96,9 @@ std::unique_ptr<column> generate_labels(
9496 * results[i] == { 1, 3, 4, ∅};
9597 *
9698 * The results column has as many (list) rows as search_keys or search_space.
97- * Note that each result (list) row has as many indices as unique values in search_space.
99+ * Note that each result (list) row has as many indices as values in the search_keys row.
100+ * Also note that this function assumes that neither search_keys nor search_space
101+ * has repetitions in the keys.
98102 *
99103 * @param search_keys Column containing lists of keys to search for
100104 * @param search_values Column containing lists of values to search through (i.e. search space)
@@ -113,7 +117,6 @@ std::unique_ptr<column> indices_of(
113117 cudf::get_current_device_resource_ref()) // Memory resource for allocations
114118{
115119 /*
116- *
117120 * Example using two list columns and indexing
118121 *
119122 * search_keys | search_values
You can’t perform that action at this time.
0 commit comments