diff options
author | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-12 21:58:48 +0000 |
---|---|---|
committer | Stefan van der Walt <stefan@sun.ac.za> | 2008-05-12 21:58:48 +0000 |
commit | b6ef006ba71899914ddb2867eba0a95d081c937d (patch) | |
tree | eef39f11daaeca84af5d9179c7fc0d8b41608701 /numpy | |
parent | 45c812ddb75c5efc6bbcb4b099792f2763db11fe (diff) | |
download | numpy-b6ef006ba71899914ddb2867eba0a95d081c937d.tar.gz |
Fix reST markup.
Diffstat (limited to 'numpy')
-rw-r--r-- | numpy/ma/API_CHANGES.txt | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/numpy/ma/API_CHANGES.txt b/numpy/ma/API_CHANGES.txt index 487dc43aa..cd040be69 100644 --- a/numpy/ma/API_CHANGES.txt +++ b/numpy/ma/API_CHANGES.txt @@ -7,7 +7,8 @@ API changes in the new masked array implementation Masked arrays are subclasses of ndarray --------------------------------------- -Contrary to the original implementation, masked arrays are now regular ndarrays:: +Contrary to the original implementation, masked arrays are now regular +ndarrays:: >>> x = masked_array([1,2,3],mask=[0,0,1]) >>> print isinstance(x, numpy.ndarray) @@ -38,7 +39,7 @@ following one will fail:: ``filled(x)`` can return a subclass of ndarray -------------- +---------------------------------------------- The function ``filled(a)`` returns an array of the same type as ``a._data``:: >>> x = masked_array(numpy.matrix([[1,2],[3,4]]),mask=[[0,0],[0,1]]) @@ -122,9 +123,14 @@ New features (non exhaustive list) ``mr_`` mimics the behavior of ``r_`` for masked arrays:: + >>> np.ma.mr_[3,4,5] + masked_array(data = [3 4 5], + mask = False, + fill_value=999999) + + ``anom`` -------- The ``anom`` method returns the deviations from the average (anomalies). - |