bundles / numpy 2.4.3 / numpy / ma / core / right_shift
function
numpy.ma.core:right_shift
source: /numpy/ma/core.py :7457
Signature
def right_shift ( a , n ) Summary
Shift the bits of an integer to the right.
Extended Summary
This is the masked array version of numpy.right_shift, for details see that function.
Examples
import numpy as np import numpy.ma as ma x = [11, 3, 8, 1] mask = [0, 0, 0, 1] masked_x = ma.masked_array(x, mask) masked_x ma.right_shift(masked_x,1)
See also
Aliases
-
numpy.ma.right_shift