summaryrefslogtreecommitdiff
path: root/numpy/lib/function_base.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-03-29 18:26:58 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-03-29 18:26:58 +0000
commit8898b967ff8fa95375fcf5c744011e8b3bf06664 (patch)
tree6bf12edd29aabcb2e0f94de059ca0a928de0e4b7 /numpy/lib/function_base.py
parent680a44a631b3d039dc63d108274eeeefa062de34 (diff)
downloadnumpy-8898b967ff8fa95375fcf5c744011e8b3bf06664.tar.gz
Fix-up usage of asarray.
Diffstat (limited to 'numpy/lib/function_base.py')
-rw-r--r--numpy/lib/function_base.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/lib/function_base.py b/numpy/lib/function_base.py
index 481e7e6e1..03ac68ab1 100644
--- a/numpy/lib/function_base.py
+++ b/numpy/lib/function_base.py
@@ -637,7 +637,7 @@ def cov(m,y=None, rowvar=1, bias=0):
is a variable and the observations are in the rows.
"""
- X = asarray(m,ndmin=2)
+ X = array(m,copy=False,ndmin=2)
if X.shape[0] == 1:
rowvar = 1
if rowvar:
@@ -649,7 +649,7 @@ def cov(m,y=None, rowvar=1, bias=0):
if y is not None:
- y = asarray(y,ndmin=2)
+ y = array(y,copy=False,ndmin=2)
X = concatenate((X,y),axis)
X -= X.mean(axis=1-axis)[tup]