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

Method __rmod__

numpy/array_api/_array_object.py:908–917  ·  view source on GitHub ↗

Performs the operation __rmod__.

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

Source from the content-addressed store, hash-verified

906 return self
907
908 def __rmod__(self: Array, other: Union[int, float, Array], /) -> Array:
909 """
910 Performs the operation __rmod__.
911 """
912 other = self._check_allowed_dtypes(other, "real numeric", "__rmod__")
913 if other is NotImplemented:
914 return other
915 self, other = self._normalize_two_args(self, other)
916 res = self._array.__rmod__(other._array)
917 return self.__class__._new(res)
918
919 def __imul__(self: Array, other: Union[int, float, Array], /) -> Array:
920 """

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