diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-03-16 17:44:20 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-03-16 17:44:20 +0000 |
commit | 7b85f2193b938e748120695cf5d3a09a811d831f (patch) | |
tree | f5da2bf6eeda415a64bdd709ebe01661a3c4953b /numpy/lib | |
parent | 0818507117b55a7f0e95dfc3cbe9f6ed1354aad9 (diff) | |
download | numpy-7b85f2193b938e748120695cf5d3a09a811d831f.tar.gz |
Third time's the charm.
Diffstat (limited to 'numpy/lib')
-rw-r--r-- | numpy/lib/function_base.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py index 04c046d7c..edad0ae26 100644 --- a/numpy/lib/function_base.py +++ b/numpy/lib/function_base.py @@ -644,10 +644,11 @@ def cov(m,y=None, rowvar=1, bias=0): rowvar = 1 if rowvar: axis = 0 - tup = (newaxis, slice(None)) + tup = (slice(None),newaxis) else: axis = 1 - tup = (slice(None),newaxis) + tup = (newaxis, slice(None)) + if y is not None: y = asarray(y,ndmin=2) |