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

Method __imod__

numpy/array_api/_array_object.py:898–906  ·  view source on GitHub ↗

Performs the operation __imod__.

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

Source from the content-addressed store, hash-verified

896 return self.__class__._new(res)
897
898 def __imod__(self: Array, other: Union[int, float, Array], /) -> Array:
899 """
900 Performs the operation __imod__.
901 """
902 other = self._check_allowed_dtypes(other, "real numeric", "__imod__")
903 if other is NotImplemented:
904 return other
905 self._array.__imod__(other._array)
906 return self
907
908 def __rmod__(self: Array, other: Union[int, float, Array], /) -> Array:
909 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected