diff options
author | cookedm <cookedm@localhost> | 2006-08-23 23:39:42 +0000 |
---|---|---|
committer | cookedm <cookedm@localhost> | 2006-08-23 23:39:42 +0000 |
commit | 9ab77ec1e9fdd2ebe5dfe2eccd7ad129189ea076 (patch) | |
tree | 3c8b6824c10fcf35bb046abc73f87d2d90b840c6 /numpy/core/ma.py | |
parent | eb334fc4722b27cdad024784dc3246c80febfb35 (diff) | |
download | numpy-9ab77ec1e9fdd2ebe5dfe2eccd7ad129189ea076.tar.gz |
add .abs() as a method on the array object
Diffstat (limited to 'numpy/core/ma.py')
-rw-r--r-- | numpy/core/ma.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/numpy/core/ma.py b/numpy/core/ma.py index 2e2d3f8ec..495764ae8 100644 --- a/numpy/core/ma.py +++ b/numpy/core/ma.py @@ -2144,6 +2144,7 @@ def _m(f): return MethodType(f, None, array) def not_implemented(*args, **kwds): raise NotImplementedError, "not yet implemented for numpy.ma arrays" +array.abs = array.__abs__ array.all = _m(alltrue) array.any = _m(sometrue) array.argmax = _m(argmax) |