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

Method __ror__

numpy/array_api/_array_object.py:950–959  ·  view source on GitHub ↗

Performs the operation __ror__.

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

Source from the content-addressed store, hash-verified

948 return self
949
950 def __ror__(self: Array, other: Union[int, bool, Array], /) -> Array:
951 """
952 Performs the operation __ror__.
953 """
954 other = self._check_allowed_dtypes(other, "integer or boolean", "__ror__")
955 if other is NotImplemented:
956 return other
957 self, other = self._normalize_two_args(self, other)
958 res = self._array.__ror__(other._array)
959 return self.__class__._new(res)
960
961 def __ipow__(self: Array, other: Union[int, float, Array], /) -> Array:
962 """

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