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

Method __rlshift__

numpy/array_api/_array_object.py:863–872  ·  view source on GitHub ↗

Performs the operation __rlshift__.

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

Source from the content-addressed store, hash-verified

861 return self
862
863 def __rlshift__(self: Array, other: Union[int, Array], /) -> Array:
864 """
865 Performs the operation __rlshift__.
866 """
867 other = self._check_allowed_dtypes(other, "integer", "__rlshift__")
868 if other is NotImplemented:
869 return other
870 self, other = self._normalize_two_args(self, other)
871 res = self._array.__rlshift__(other._array)
872 return self.__class__._new(res)
873
874 def __imatmul__(self: Array, other: Array, /) -> Array:
875 """

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