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

Method __ilshift__

numpy/array_api/_array_object.py:853–861  ·  view source on GitHub ↗

Performs the operation __ilshift__.

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

Source from the content-addressed store, hash-verified

851 return self.__class__._new(res)
852
853 def __ilshift__(self: Array, other: Union[int, Array], /) -> Array:
854 """
855 Performs the operation __ilshift__.
856 """
857 other = self._check_allowed_dtypes(other, "integer", "__ilshift__")
858 if other is NotImplemented:
859 return other
860 self._array.__ilshift__(other._array)
861 return self
862
863 def __rlshift__(self: Array, other: Union[int, Array], /) -> Array:
864 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected