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

Method __rfloordiv__

numpy/array_api/_array_object.py:842–851  ·  view source on GitHub ↗

Performs the operation __rfloordiv__.

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

Source from the content-addressed store, hash-verified

840 return self
841
842 def __rfloordiv__(self: Array, other: Union[int, float, Array], /) -> Array:
843 """
844 Performs the operation __rfloordiv__.
845 """
846 other = self._check_allowed_dtypes(other, "real numeric", "__rfloordiv__")
847 if other is NotImplemented:
848 return other
849 self, other = self._normalize_two_args(self, other)
850 res = self._array.__rfloordiv__(other._array)
851 return self.__class__._new(res)
852
853 def __ilshift__(self: Array, other: Union[int, Array], /) -> Array:
854 """

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