diff options
| author | Ross Barnowski <rossbar@berkeley.edu> | 2023-01-25 23:31:48 -0800 |
|---|---|---|
| committer | Ross Barnowski <rossbar@berkeley.edu> | 2023-01-25 23:31:48 -0800 |
| commit | 1bff4d246ed79d01522085136a7b6b46145b8f0e (patch) | |
| tree | b4ae43229c5ff73c89d5647d1aac0803280950eb /numpy/array_api | |
| parent | 30a99cdf154e7a76573b5366c2872709b5347cf8 (diff) | |
| parent | 0457ca4e93d91983c985a8b463f71ab2e7b58b27 (diff) | |
| download | numpy-1bff4d246ed79d01522085136a7b6b46145b8f0e.tar.gz | |
Merge branch 'main' into document_diag_indices_from
Diffstat (limited to 'numpy/array_api')
| -rw-r--r-- | numpy/array_api/_manipulation_functions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/array_api/_manipulation_functions.py b/numpy/array_api/_manipulation_functions.py index 4f2114ff5..7991f46a2 100644 --- a/numpy/array_api/_manipulation_functions.py +++ b/numpy/array_api/_manipulation_functions.py @@ -52,6 +52,7 @@ def permute_dims(x: Array, /, axes: Tuple[int, ...]) -> Array: return Array._new(np.transpose(x._array, axes)) +# Note: the optional argument is called 'shape', not 'newshape' def reshape(x: Array, /, shape: Tuple[int, ...]) -> Array: """ Array API compatible wrapper for :py:func:`np.reshape <numpy.reshape>`. |
