Skip to content

Commit c8bac90

Browse files
committed
Add signatures for diff
1 parent 4bc91bb commit c8bac90

File tree

1 file changed

+41
-0
lines changed
  • signatures/mathematical-functions-elementwise

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# diff
2+
3+
## NumPy
4+
5+
```
6+
numpy.diff(a, n=1, axis=-1, prepend=<no value>, append=<no value>) → ndarray
7+
```
8+
9+
## CuPy
10+
11+
```
12+
cupy.diff(a, n=1, axis=-1, prepend=None, append=None) → ndarray
13+
```
14+
15+
## dask.array
16+
17+
```
18+
dask.array.diff(a, n=1, axis=- 1, prepend=None, append=None) → array
19+
```
20+
21+
## JAX
22+
23+
```
24+
jax.numpy.diff(a, n=1, axis=-1, prepend=None, append=None) → ndarray
25+
```
26+
27+
`prepend` and `append` must be array-like.
28+
29+
## PyTorch
30+
31+
```
32+
torch.diff(input, n=1, dim=-1, prepend=None, append=None) → Tensor
33+
```
34+
35+
## TensorFlow
36+
37+
```
38+
tf.experimental.numpy.diff(a, n=1, axis=-1) → Tensor
39+
```
40+
41+
No support for `prepend` and `append` (as of v2.16.1).

0 commit comments

Comments
 (0)