summaryrefslogtreecommitdiff
path: root/numpy/core/ma.py
diff options
context:
space:
mode:
authorTravis Oliphant <oliphant@enthought.com>2006-06-22 18:53:16 +0000
committerTravis Oliphant <oliphant@enthought.com>2006-06-22 18:53:16 +0000
commit1d7c063912d334bdae1ca62da912debce9e943ae (patch)
treeab0514667dcfca8c880ed5aa225800e997c0291a /numpy/core/ma.py
parentd5a5da520b1eddd10a7dde79b0e7df281ee1abaa (diff)
downloadnumpy-1d7c063912d334bdae1ca62da912debce9e943ae.tar.gz
Cleaned up casting code to also handle broadcasting. Several SciPy tests are still failing...
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r--numpy/core/ma.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py
index 4fb7e59c0..ae7f2f997 100644
--- a/numpy/core/ma.py
+++ b/numpy/core/ma.py
@@ -2234,7 +2234,7 @@ def _var(self,axis=0,dtype=None):
a = self.swapaxes(axis,0)
a = a - a.mean(axis=0)
a *= a
- a /= (a.count(axis=0)-1)
+ a /= a.count(axis=0)
return a.swapaxes(0,axis).sum(axis)
def _std(self,axis=0,dtype=None):
return (self.var(axis,dtype))**0.5