summaryrefslogtreecommitdiff
path: root/numpy/array_api/_creation_functions.py
diff options
context:
space:
mode:
authorKIU Shueng Chuan <nixchuan@gmail.com>2021-10-19 14:24:51 +0800
committerKIU Shueng Chuan <nixchuan@gmail.com>2021-10-19 14:35:35 +0800
commit52b5935ea1ab9a5f1043e7a4af2ced8311affe01 (patch)
tree21b2525fc3462ec02d75dda47f06d496b4c1a0c0 /numpy/array_api/_creation_functions.py
parentdd2eaaabdb0451631e95376ae2b4d319082b438e (diff)
downloadnumpy-52b5935ea1ab9a5f1043e7a4af2ced8311affe01.tar.gz
BUG: fix win32 np.clip slowness
The use of the macro _NPY_CLIP results in multiple re-evaluations of the input arguments. Thus for floating point types, the check of NaNs is performed multiple times. This manifests itself as a slowness on Win32 builds. See #18673.
Diffstat (limited to 'numpy/array_api/_creation_functions.py')
0 files changed, 0 insertions, 0 deletions