8000 docs: add `take_along_axis` signatures · data-apis/array-api-comparison@f61360f · GitHub
[go: up one dir, main page]

Skip to content

Commit f61360f

Browse files
committed
docs: add take_along_axis signatures
1 parent 01d47bd commit f61360f

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# take_along_axis
2+
3+
## NumPy
4+
5+
```
6+
numpy.take_along_axis(arr, indices, axis) → ndarray
7+
```
8+
9+
When `axis` is `None`, flatten for consistency with `sort` and `argsort`.
10+
11+
## CuPy
12+
13+
```
14+
cupy.take_along_axis(a, indices, axis) → ndarray
15+
```
16+
17+
## dask.array
18+
19+
```
20+
21+
```
22+
23+
- <https://github.com/dask/dask/issues/3663>
24+
- <https://github.com/dask/dask/pull/11076>
25+
26+
## JAX
27+
28+
```
29+
jax.numpy.take_along_axis(arr, indices, axis, mode=None, fill_value=None) → ndarray
30+
```
31+
32+
- "mode" specifies how to handle out-of-bounds indices.
33+
- "fill_value" specifies the value to use when "mode" is "fill"
34+
35+
## MXNet
36+
37+
```
38+
39+
```
40+
41+
## PyTorch
42+
43+
```
44+
torch.take_along_dim(input, indices, dim=None, *, out=None) → Tensor
45+
```
46+
47+
Supports flattening when `dim=None`.
48+
49+
## TensorFlow
50+
51+
```
52+
tf.experimental.numpy.take_along_axis(arr, indices, axis) → Tensor
53+
```

0 commit comments

Comments
 (0)
0