diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2018-03-16 09:43:52 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-16 09:43:52 -0600 |
commit | e19e52e0934690323d666704b850dcab1f8c66bf (patch) | |
tree | eedca96806f0c73cafa3e845475cb4f6e776210c /numpy/lib/function_base.py | |
parent | 01cd5c9d8b8cd4cfc5c7bde066aa5ed4736ed3e9 (diff) | |
parent | 018dfbcaa69d8bcda4d909be11a65a188cf5d1dd (diff) | |
download | numpy-e19e52e0934690323d666704b850dcab1f8c66bf.tar.gz |
Merge pull request #10666 from dfreese/fix/covcomplex
BUG: fix complex casting error in cov with aweights
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r-- | numpy/lib/function_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 1eb197c12..9ccbfafa2 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -2302,7 +2302,7 @@ def cov(m, y=None, rowvar=True, bias=False, ddof=None, fweights=None, else: X_T = (X*w).T c = dot(X, X_T.conj()) - c *= 1. / np.float64(fact) + c *= np.true_divide(1, fact) return c.squeeze() |