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

Method __imul__

numpy/array_api/_array_object.py:919–927  ·  view source on GitHub ↗

Performs the operation __imul__.

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

Source from the content-addressed store, hash-verified

917 return self.__class__._new(res)
918
919 def __imul__(self: Array, other: Union[int, float, Array], /) -> Array:
920 """
921 Performs the operation __imul__.
922 """
923 other = self._check_allowed_dtypes(other, "numeric", "__imul__")
924 if other is NotImplemented:
925 return other
926 self._array.__imul__(other._array)
927 return self
928
929 def __rmul__(self: Array, other: Union[int, float, Array], /) -> Array:
930 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected