Skip to content

Commit 312c75b

Browse files
committed
docs: add bincount signatures
1 parent 8cd85d8 commit 312c75b

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

signatures/statistics/bincount.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# bincount
2+
3+
## NumPy
4+
5+
```
6+
numpy.bincount(x, /, weights=None, minlength=0) → ndarray
7+
```
8+
9+
`x` must be one-dimensional.
10+
11+
## CuPy
12+
13+
```
14+
cupy.bincount(x, weights=None, minlength=None) → ndarray
15+
```
16+
17+
Warns that may synchronize device. Default for `minlength` is `None`.
18+
19+
## dask.array
20+
21+
```
22+
dask.array.bincount(x, /, weights=None, minlength=0) → ndarray
23+
```
24+
25+
Default for `minlength` is `0`.
26+
27+
## JAX
28+
29+
```
30+
jax.numpy.bincount(x, weights=None, minlength=0, *, length=None) → ndarray
31+
```
32+
33+
Supports n-dimensional `x`. Supports `length` parameter to allow use with `jax.jit()`.
34+
35+
## PyTorch
36+
37+
```
38+
torch.bincount(input, weights=None, minlength=0) → Tensor
39+
```
40+
41+
Default for `minlength` is `0`.
42+
43+
## TensorFlow
44+
45+
```
46+
tf.math.bincount(arr, weights=None, minlength=None, maxlength=None, dtype=tf.dtypes.int32, name=None, axis=None, binary_output=False) → Tensor
47+
```
48+
49+
`minlength` default is `None`.
50+
51+
## ndonnx
52+
53+
```
54+
55+
```
56+
57+
## MLX
58+
59+
```
60+
61+
```

0 commit comments

Comments
 (0)