diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2022-11-28 17:43:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-28 17:43:13 +0100 |
commit | 4dc5321a3d8d308808a200a3bf621651a5e67f5a (patch) | |
tree | c1377cc480147fc402243dc9e5129f5e16b3959a /numpy/array_api/tests/test_asarray.py | |
parent | c687f2d16f8ba965828fee3a001844b4952474f5 (diff) | |
download | numpy-4dc5321a3d8d308808a200a3bf621651a5e67f5a.tar.gz |
ENH: Slightly improve error when gufunc axes has wrong size (#22675)
* DOC: Slightly improve error when gufunc axes has wrong size
My hope was to tweak it into something useful that:
a @= b
can raise when `b` should have two dimensions and has two axes specified
but actually only has one.
I didn't succeed, but I still think it a slight improvement to give the
ufunc name and the actual core dimensions.
* ENH: Use AxisError when gufunc axes appear wrong due to the number of entries
This allows catching the error relatively targeted for in-place matmul `a @= b`
which may use this path.
* MAINT: Restore most TypeErrors (a bit more compexl than nice, but...)
* DOC: add a release note
Co-authored-by: mattip <matti.picus@gmail.com>
Diffstat (limited to 'numpy/array_api/tests/test_asarray.py')
0 files changed, 0 insertions, 0 deletions