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

Method __floordiv__

numpy/array_api/_array_object.py:521–530  ·  view source on GitHub ↗

Performs the operation __floordiv__.

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

Source from the content-addressed store, hash-verified

519 return res
520
521 def __floordiv__(self: Array, other: Union[int, float, Array], /) -> Array:
522 """
523 Performs the operation __floordiv__.
524 """
525 other = self._check_allowed_dtypes(other, "real numeric", "__floordiv__")
526 if other is NotImplemented:
527 return other
528 self, other = self._normalize_two_args(self, other)
529 res = self._array.__floordiv__(other._array)
530 return self.__class__._new(res)
531
532 def __ge__(self: Array, other: Union[int, float, Array], /) -> Array:
533 """

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