numpy.ma.MaskedArray class is a subclass of ndarray designed to manipulate numerical arrays with missing data. With the help of Numpy MaskedArray.__rfloordiv__ operator we can divide the self with a particular value (other) that is provided as a parameter to this function.
Return: Divide self into other, and return a new masked array.
Example #1 :
In this example we can see that after applying MaskedArray.__rfloordiv__(), we get the the floor value of every element that is divided in an array. This method will work fine for positive, negative and floating point values of an array.
[2.0 0.0 0.0 0.0 0.0]
[[3.0 1.0 1.0 0.0 0.0] [0.0 0.0 0.0 1.0 1.0]]
- Python | Numpy numpy.ndarray.__sub__()
- Python | Numpy numpy.ndarray.__ge__()
- Python | Numpy numpy.ndarray.__and__()
- Python | Numpy numpy.ndarray.__eq__()
- Python | Numpy numpy.ndarray.__xor__()
- Python | Numpy numpy.ndarray.__gt__()
- Python | Numpy numpy.ndarray.__le__()
- Python | Numpy numpy.ndarray.__isub__()
- Python | Numpy numpy.ndarray.__iadd__()
- Python | Numpy numpy.ndarray.__or__()
- Python | Numpy numpy.ndarray.__floordiv__()
- Python | Numpy numpy.ndarray.__add__()
- Python | Numpy numpy.ndarray.__truediv__()
- Python | Numpy numpy.ndarray.__neg__()
- Python | Numpy numpy.ndarray.__lt__()
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.