diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-07-29 17:30:40 -0700 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-07-29 17:58:57 -0700 |
commit | 77246a8d8e16f83777eca34a90cad7bd7b506cda (patch) | |
tree | d418672b2c15a090579133580c4831d4031e3143 /numpy/array_api/_set_functions.py | |
parent | 2c1a34daa024398cdf9c6e1fbeff52b4eb280551 (diff) | |
download | numpy-77246a8d8e16f83777eca34a90cad7bd7b506cda.tar.gz |
MAINT: Refactor DType slots into an opaque, allocated struct
Using an allocated struct (and adding some reserved empty fields)
should allow to make the size of the DType(Type) fixed, which allows
much easier definition of C-side defined DTypes (so long they are
static types).
Also organizes legacy, abstract, and parametric into flags and
introduces Macros to access all of these.
This is probably not the final word on the structure, but hiding
these into an allocated, opaque, struct seems necessary.
It also changes the allocation to use Pythons allocator rather
than malloc, just because mixing the two is not that great probably.
Diffstat (limited to 'numpy/array_api/_set_functions.py')
0 files changed, 0 insertions, 0 deletions