[Numpy-discussion] Clarifications in numpy.ma module
maniteja.modesty067 at gmail.com
Tue Dec 30 05:49:11 EST 2014
I have recently been trying out various functions in masked array module of
numpy. I have got confused at a places in the *core.py *of *ma *module.
1. In the *masked_equal *method, the docstring doesn't suggest that
*gets updated by the *value *parameter of the function, but this line (
https://github.com/numpy/numpy/blob/master/numpy/ma/core.py#L1978 ) sets
the *fill_value* as *value. *
2. The outputs of following functions - *any *(
https://github.com/numpy/numpy/blob/master/numpy/ma/core.py#L4327) - *all* (
are similar, they return *np.ma.masked *if all the elements have masks in
the array, else return *True*.
3. _*MaskedBinaryOperation : *Used for multiply, add, subtract
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the NumPy-Discussion