def right_shift (a, n):
m = getmask(a)<EOL>if m is nomask:<EOL><INDENT>d = umath.right_shift(filled(a), n)<EOL>return masked_array(d)<EOL><DEDENT>else:<EOL><INDENT>d = umath.right_shift(filled(a, <NUM_LIT:0>), n)<EOL>return masked_array(d, mask=m)<EOL><DEDENT>
Shift the bits of an integer to the right.

This is the masked array version of `numpy.right_shift`, for details
see that function.

See Also
--------
numpy.right_shift