diff options
author | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-09 12:14:13 -0600 |
---|---|---|
committer | Sebastian Berg <sebastian@sipsolutions.net> | 2021-11-09 12:16:48 -0600 |
commit | 5b94a03b93d171232e0a64dc2160e4f2139e9b1a (patch) | |
tree | 68f0e81cf9cff91150093a187d668e6cc4276f63 /numpy/array_api/_creation_functions.py | |
parent | f6076ee90985e7839d7ec6ed83ea1f85c0ece44d (diff) | |
download | numpy-5b94a03b93d171232e0a64dc2160e4f2139e9b1a.tar.gz |
MAINT: Simplify `byte_offset` handling in dlpack.h and add comment
If `byte_offset = 0` is forced anyway, there is no point in trying
to preserve a previous `data` information from the capsule.
(And probably it should have used a base array also, and not just
a base DLPack capsule, anyway.)
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions