8000 Add CuPy signature for partition · data-apis/array-api-comparison@fade09e · GitHub
[go: up one dir, main page]

Skip to content

Commit fade09e

Browse files
committed
Add CuPy signature for partition
1 parent e827cd8 commit fade09e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

signatures/searching/top_k.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ numpy.topk(a, k, axis=-1, largest=True, sorted=True) → [ndarray, ndarray]
1212
numpy.partition(a, kth, axis=-1, kind='introselect', order=None) → ndarray
1313
```
1414

15-
**Note**: returns an array of the same shape as `a` and requires sorting the return value to get the top `k` values in order.
15+
**Note**: returns an array of the same shape as `a` and requires sorting the return value to get the top `k` values in order. If `axis` is `None`, partitions a flattened array.
1616

1717
```
1818
numpy.argpartition(a, kth, axis=-1, kind='introselect', order=None) → ndarray
@@ -28,6 +28,10 @@ cupy.argpartition(a, kth, axis=-1) → ndarray
2828

2929
**Note**: performs a full sort.
3030

31+
```
32+
cupy.partition(a, kth, axis=-1) → ndarray
33+
```
34+
3135
## dask.array
3236

3337
```

0 commit comments

Comments
 (0)
0