summaryrefslogtreecommitdiff
path: root/numpy/array_api/_statistical_functions.py
diff options
context:
space:
mode:
authorSebastian Berg <sebastian@sipsolutions.net>2021-07-29 17:30:40 -0700
committerSebastian Berg <sebastian@sipsolutions.net>2021-07-29 17:58:57 -0700
commit77246a8d8e16f83777eca34a90cad7bd7b506cda (patch)
treed418672b2c15a090579133580c4831d4031e3143 /numpy/array_api/_statistical_functions.py
parent2c1a34daa024398cdf9c6e1fbeff52b4eb280551 (diff)
downloadnumpy-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/_statistical_functions.py')
0 files changed, 0 insertions, 0 deletions