Skip to content

Commit 86c4216

Browse files
authored
DOC: Some updates to the array_api compat document (#22747)
* Add reshape differences to the array API compat document * Add an item to the array API compat document about reverse broadcasting * Make some wording easier to read Original NumPy Commit: a6740500576475a43a7121087e9f5f96d48ef1d2
1 parent 5536db5 commit 86c4216

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

array_api_strict/_manipulation_functions.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def permute_dims(x: Array, /, axes: Tuple[int, ...]) -> Array:
5252
return Array._new(np.transpose(x._array, axes))
5353

5454

55+
# Note: the optional argument is called 'shape', not 'newshape'
5556
def reshape(x: Array, /, shape: Tuple[int, ...]) -> Array:
5657
"""
5758
Array API compatible wrapper for :py:func:`np.reshape <numpy.reshape>`.

0 commit comments

Comments
 (0)