[Numpy-svn] r5158 - trunk/numpy/ma
numpy-svn at scipy.org
numpy-svn at scipy.org
Mon May 12 17:59:08 EDT 2008
Author: stefan
Date: 2008-05-12 16:58:48 -0500 (Mon, 12 May 2008)
New Revision: 5158
Modified:
trunk/numpy/ma/API_CHANGES.txt
Log:
Fix reST markup.
Modified: trunk/numpy/ma/API_CHANGES.txt
===================================================================
--- trunk/numpy/ma/API_CHANGES.txt 2008-05-12 17:09:08 UTC (rev 5157)
+++ trunk/numpy/ma/API_CHANGES.txt 2008-05-12 21:58:48 UTC (rev 5158)
@@ -7,7 +7,8 @@
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 @@
``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 @@
``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).
-
More information about the Numpy-svn
mailing list