diff options
author | Ralf Gommers <ralf.gommers@gmail.com> | 2021-01-23 14:16:17 +0100 |
---|---|---|
committer | Ralf Gommers <ralf.gommers@gmail.com> | 2021-01-23 17:01:57 +0100 |
commit | 768acb7cf856bb49d4d183f8e9cbd456ecc32475 (patch) | |
tree | 0585eab99f08fc5ffd00f1606890a630bec7ac9f /numpy/array_api/tests/test_elementwise_functions.py | |
parent | 164959a9049c05901dd4a2cc66c07a4df37527c1 (diff) | |
download | numpy-768acb7cf856bb49d4d183f8e9cbd456ecc32475.tar.gz |
BUG: shuffling empty array with axis=1 was broken
This would trigger:
```
NotImplementedError: Axis argument is only supported on ndarray objects
```
because empty arrays and array scalars would take the "untyped" path.
The bug exists only for Generator, not in RandomState (it doesn't have
axis keyword for `shuffle`), but update both because it keeps
implementations in sync and the change results in more understandable
code also for RandomState.
Diffstat (limited to 'numpy/array_api/tests/test_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions