You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: spec/API_specification/manipulation_functions.md
+3-3
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ Joins a sequence of arrays along an existing axis.
39
39
```
40
40
41
41
(function-expand_dims)=
42
-
### expand_dims(x, axis, /)
42
+
### expand_dims(x, /, *, axis)
43
43
44
44
Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by `axis`.
45
45
@@ -81,7 +81,7 @@ Reverses the order of elements in an array along the given axis. The shape of th
81
81
- an output array having the same data type and shape as `x` and whose elements, relative to `x`, are reordered.
82
82
83
83
(function-reshape)=
84
-
### reshape(x, shape, /)
84
+
### reshape(x, /, shape)
85
85
86
86
Reshapes an array without changing its data.
87
87
@@ -102,7 +102,7 @@ Reshapes an array without changing its data.
102
102
- an output array having the same data type, elements, and underlying element order as `x`.
103
103
104
104
(function-roll)=
105
-
### roll(x, shift, /, *, axis=None)
105
+
### roll(x, /, shift, *, axis=None)
106
106
107
107
Rolls array elements along a specified axis. Array elements that roll beyond the last position are re-introduced at the first position. Array elements that roll beyond the first position are re-introduced at the last position.
0 commit comments