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

Method __rrshift__

numpy/array_api/_array_object.py:994–1003  ·  view source on GitHub ↗

Performs the operation __rrshift__.

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

Source from the content-addressed store, hash-verified

992 return self
993
994 def __rrshift__(self: Array, other: Union[int, Array], /) -> Array:
995 """
996 Performs the operation __rrshift__.
997 """
998 other = self._check_allowed_dtypes(other, "integer", "__rrshift__")
999 if other is NotImplemented:
1000 return other
1001 self, other = self._normalize_two_args(self, other)
1002 res = self._array.__rrshift__(other._array)
1003 return self.__class__._new(res)
1004
1005 def __isub__(self: Array, other: Union[int, float, Array], /) -> Array:
1006 """

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