diff options
author | Arink Verma <arinkverma@gmail.com> | 2013-07-06 18:40:38 +0530 |
---|---|---|
committer | Arink Verma <arinkverma@gmail.com> | 2013-07-06 18:40:38 +0530 |
commit | 7c46223294001328bae117ce4a04d3a1f53a1ad6 (patch) | |
tree | 8b4dafb03ac0edf609e2d64d574d0e892fa07f23 /numpy/lib/utils.py | |
parent | 79188b21dd85e4115195971522be91a2fcb1a9d2 (diff) | |
download | numpy-7c46223294001328bae117ce4a04d3a1f53a1ad6.tar.gz |
ENH: added check for scalar array in get_ufunc_arguments from ufunc_object.c
Check if object is of array dimension zero, then avoid heavy calls like PyArray_FromAny. Hence passing obj to out_op PyArrayObject unchanged. Also PyArray_FromAny(obj,NULL,0,0,0,NULL) calls PyArray_FromArray(obj,NULL,0) which return original obj
Diffstat (limited to 'numpy/lib/utils.py')
0 files changed, 0 insertions, 0 deletions