summaryrefslogtreecommitdiff
path: root/numpy/core/numeric.py
diff options
context:
space:
mode:
authorJoseph Martinot-Lagarde <contrebasse@gmail.com>2013-10-08 23:33:26 +0200
committerSebastian Berg <sebastian@sipsolutions.net>2013-10-16 20:54:21 +0200
commit84c52d80b05510e10e730ce9c8c026aadb429594 (patch)
tree26ce2b0445ce81bde4ad82a2e418de0ed102a800 /numpy/core/numeric.py
parent95a5219774818eb754053a8c45023e2e185642e7 (diff)
downloadnumpy-84c52d80b05510e10e730ce9c8c026aadb429594.tar.gz
BUG: cov/corrcoef complex input and empty arrays
This preserves the complex (and higher precision float or object) type of the input array, so that the complex covariance and correlation coefficients can be calculated. It also fixes the the behaviour of empty arrays. These will now either result in a 0x0 result, or a NxN result filled with NaNs. A warning is now issued when ddof is too large and the factor set to 0 so that in this case the result is always NaN or infinity/negative infinity and never a negative number. Closes gh-597 and gh-2680 Closes gh-3882 (original pull request)
Diffstat (limited to 'numpy/core/numeric.py')
0 files changed, 0 insertions, 0 deletions