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

Method __itruediv__

numpy/array_api/_array_object.py:1026–1034  ·  view source on GitHub ↗

Performs the operation __itruediv__.

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

Source from the content-addressed store, hash-verified

1024 return self.__class__._new(res)
1025
1026 def __itruediv__(self: Array, other: Union[float, Array], /) -> Array:
1027 """
1028 Performs the operation __itruediv__.
1029 """
1030 other = self._check_allowed_dtypes(other, "floating-point", "__itruediv__")
1031 if other is NotImplemented:
1032 return other
1033 self._array.__itruediv__(other._array)
1034 return self
1035
1036 def __rtruediv__(self: Array, other: Union[float, Array], /) -> Array:
1037 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected