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

Method __iand__

numpy/array_api/_array_object.py:811–819  ·  view source on GitHub ↗

Performs the operation __iand__.

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

Source from the content-addressed store, hash-verified

809 return self.__class__._new(res)
810
811 def __iand__(self: Array, other: Union[int, bool, Array], /) -> Array:
812 """
813 Performs the operation __iand__.
814 """
815 other = self._check_allowed_dtypes(other, "integer or boolean", "__iand__")
816 if other is NotImplemented:
817 return other
818 self._array.__iand__(other._array)
819 return self
820
821 def __rand__(self: Array, other: Union[int, bool, Array], /) -> Array:
822 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected