diff options
author | Pieter Eendebak <pieter.eendebak@gmail.com> | 2022-05-14 11:26:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-14 11:26:57 +0200 |
commit | cfbbde8ae720ba4fc653aabe64f9acc3d4c48183 (patch) | |
tree | 6c235c0362637683a0eb70a360b02b327d9e311f /numpy/array_api/_elementwise_functions.py | |
parent | c93faa47504c8dc1cc59d60212a537395f946a7c (diff) | |
download | numpy-cfbbde8ae720ba4fc653aabe64f9acc3d4c48183.tar.gz |
PERF: Fast check on equivalent arrays in PyArray_EQUIVALENTLY_ITERABLE_OVERLAP_OK (#21464)
Addresses one of the items in #21455
* fast check on equivalent arrays in PyArray_EQUIVALENTLY_ITERABLE_OVERLAP_OK
* fix for case stride1==0
* remove assert statements
* whitespace
* DOC: Add comment that output broadcasting is rejected by overlap detection
That is a bit of a weird dynamic here, and it would probably nice to clean
up. However, it is also not a reason to not add the fast-path right now.
---
Note that it may also be good to just use a data-pointer comparison or push this fast-path into the overlap detection function itself.
Diffstat (limited to 'numpy/array_api/_elementwise_functions.py')
0 files changed, 0 insertions, 0 deletions