diff options
author | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-20 14:27:37 +0200 |
---|---|---|
committer | Sebastian Berg <sebastianb@nvidia.com> | 2023-04-20 15:49:39 +0200 |
commit | 534c2e5431983bf83764138e81a5536ad9bae7ee (patch) | |
tree | 64c7194cdd04f19ae4aade525a4f36632f17e1d0 /numpy/array_api/_indexing_functions.py | |
parent | e20f11036bb7ce9f8de91eb4240e49ea4e41ef17 (diff) | |
download | numpy-534c2e5431983bf83764138e81a5536ad9bae7ee.tar.gz |
MAINT: Add a proper implementation for structured zerofill
This reorganizes the generic traversal functions for structured
dtypes a bit (before it wasn't quite generic).
Then uses that for zerofilling. We could get the two a bit closer
by also supporting `func==NULL` explicitly for clearing.
(I have not includes this here.)
The old `FillObjectArray` is still in use now, this is not ideal
and the new approach should be duplicated to add an "emptyfill"
(same semantics, normally just memset to 0, but for objects we
place an explicit `None` object).
This is a necessary follow-up to gh-23591.
Diffstat (limited to 'numpy/array_api/_indexing_functions.py')
0 files changed, 0 insertions, 0 deletions