Skip to content

Commit fa900fa

Browse files
committed
Update specification for expand_dims, roll and reshape
Address comment in data-apisgh-85
1 parent 09acbab commit fa900fa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/API_specification/manipulation_functions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Joins a sequence of arrays along an existing axis.
3939
```
4040
4141
(function-expand_dims)=
42-
### expand_dims(x, axis, /)
42+
### expand_dims(x, /, *, axis)
4343
4444
Expands the shape of an array by inserting a new axis (dimension) of size one at the position specified by `axis`.
4545
@@ -81,7 +81,7 @@ Reverses the order of elements in an array along the given axis. The shape of th
8181
- an output array having the same data type and shape as `x` and whose elements, relative to `x`, are reordered.
8282
8383
(function-reshape)=
84-
### reshape(x, shape, /)
84+
### reshape(x, /, shape)
8585
8686
Reshapes an array without changing its data.
8787
@@ -102,7 +102,7 @@ Reshapes an array without changing its data.
102102
- an output array having the same data type, elements, and underlying element order as `x`.
103103
104104
(function-roll)=
105-
### roll(x, shift, /, *, axis=None)
105+
### roll(x, /, shift, *, axis=None)
106106
107107
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.
108108

0 commit comments

Comments
 (0)