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

Method __iadd__

numpy/array_api/_array_object.py:790–798  ·  view source on GitHub ↗

Performs the operation __iadd__.

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

Source from the content-addressed store, hash-verified

788 return self.__class__._new(res)
789
790 def __iadd__(self: Array, other: Union[int, float, Array], /) -> Array:
791 """
792 Performs the operation __iadd__.
793 """
794 other = self._check_allowed_dtypes(other, "numeric", "__iadd__")
795 if other is NotImplemented:
796 return other
797 self._array.__iadd__(other._array)
798 return self
799
800 def __radd__(self: Array, other: Union[int, float, Array], /) -> Array:
801 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected