diff options
author | Travis Oliphant <oliphant@enthought.com> | 2006-06-22 18:53:16 +0000 |
---|---|---|
committer | Travis Oliphant <oliphant@enthought.com> | 2006-06-22 18:53:16 +0000 |
commit | 1d7c063912d334bdae1ca62da912debce9e943ae (patch) | |
tree | ab0514667dcfca8c880ed5aa225800e997c0291a /numpy/core/ma.py | |
parent | d5a5da520b1eddd10a7dde79b0e7df281ee1abaa (diff) | |
download | numpy-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.py | 2 |
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 |