MCPcopy Create free account
hub / github.com/numpy/numpy / __rshift__

Method __rshift__

numpy/array_api/_array_object.py:725–734  ·  view source on GitHub ↗

Performs the operation __rshift__.

(self: Array, other: Union[int, Array], /)

Source from the content-addressed store, hash-verified

723 return pow(self, other)
724
725 def __rshift__(self: Array, other: Union[int, Array], /) -> Array:
726 """
727 Performs the operation __rshift__.
728 """
729 other = self._check_allowed_dtypes(other, "integer", "__rshift__")
730 if other is NotImplemented:
731 return other
732 self, other = self._normalize_two_args(self, other)
733 res = self._array.__rshift__(other._array)
734 return self.__class__._new(res)
735
736 def __setitem__(
737 self,

Callers

nothing calls this directly

Calls 3

_check_allowed_dtypesMethod · 0.95
_normalize_two_argsMethod · 0.95
_newMethod · 0.80

Tested by

no test coverage detected