summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_function_base.py
diff options
context:
space:
mode:
authorCharles Harris <charlesr.harris@gmail.com>2016-03-13 13:41:06 -0600
committerCharles Harris <charlesr.harris@gmail.com>2016-03-13 20:06:05 -0600
commitd92ff4cdd1fc3608e39ffbe119ecbb520b678f3e (patch)
tree0839e7d776d34ea2b037d3a6783686b91bed6bf9 /numpy/lib/tests/test_function_base.py
parentfa107fe361520ceac09131f96a8715473078801e (diff)
downloadnumpy-d92ff4cdd1fc3608e39ffbe119ecbb520b678f3e.tar.gz
MAINT/BUG: Clip real and imag parts of corrcoef return to [-1, 1].
The non-nan elements of the result of corrcoef should satisfy the inequality abs(x) <= 1 and the non-nan elements of the diagonal should be exactly one. We can't guarantee those results due to roundoff, but clipping the real and imaginary parts to the interval [-1, 1] improves things to a small degree. Closes #7392.
Diffstat (limited to 'numpy/lib/tests/test_function_base.py')
0 files changed, 0 insertions, 0 deletions