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

Method __ifloordiv__

numpy/array_api/_array_object.py:832–840  ·  view source on GitHub ↗

Performs the operation __ifloordiv__.

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

Source from the content-addressed store, hash-verified

830 return self.__class__._new(res)
831
832 def __ifloordiv__(self: Array, other: Union[int, float, Array], /) -> Array:
833 """
834 Performs the operation __ifloordiv__.
835 """
836 other = self._check_allowed_dtypes(other, "real numeric", "__ifloordiv__")
837 if other is NotImplemented:
838 return other
839 self._array.__ifloordiv__(other._array)
840 return self
841
842 def __rfloordiv__(self: Array, other: Union[int, float, Array], /) -> Array:
843 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected