parameters: (a, n)
docstring: Right shift n bits
docstring_summary: Right shift n bits
docstring_tokens: Right shift n bits
function: def right_shift (a, n):
      "Right shift n bits"
      m = getmask(a)
      if m is nomask:
          d = umath.right_shift(filled(a), n)
          return masked_array(d)
      else:
          d = umath.right_shift(filled(a, 0), n)
          return masked_array(d, m)
function_tokens: def right_shift ( a , n ) : m = getmask ( a ) if m is nomask : d = umath . right_shift ( filled ( a ) , n ) return masked_array ( d ) else : d = umath . right_shift ( filled ( a , 0 ) , n ) return masked_array ( d , m )