summaryrefslogtreecommitdiff
path: root/numpy/testing/utils.py
diff options
context:
space:
mode:
authorStuart Archibald <stuart@opengamma.com>2015-11-17 16:30:02 +0000
committerCharles Harris <charlesr.harris@gmail.com>2016-01-16 10:07:11 -0700
commit8b8f4648cbef9c64152d6f1f95703a400b156d83 (patch)
tree1f6d0b30f987ad86d3a8204ff6356d3383288fef /numpy/testing/utils.py
parent4ac1a77f0730f58383ed68615e4d93933cde74f0 (diff)
downloadnumpy-8b8f4648cbef9c64152d6f1f95703a400b156d83.tar.gz
BUG: fix issues with signed zeros in scalar math complex division.
The current algorithm used in scalar math complex division appears to incorrectly handle signed zeros. This patch duplicates the algorithm used for complex division in the loops.c.src file into the scalarmath.c.src file so the algorithms are consistent regardless of context. Unit tests are added in the scalar context for testing the correctness of sign when zeros are encountered and also to trip the new branches in the now consistent algorithm.
Diffstat (limited to 'numpy/testing/utils.py')
0 files changed, 0 insertions, 0 deletions