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

Method __isub__

numpy/array_api/_array_object.py:1005–1013  ·  view source on GitHub ↗

Performs the operation __isub__.

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

Source from the content-addressed store, hash-verified

1003 return self.__class__._new(res)
1004
1005 def __isub__(self: Array, other: Union[int, float, Array], /) -> Array:
1006 """
1007 Performs the operation __isub__.
1008 """
1009 other = self._check_allowed_dtypes(other, "numeric", "__isub__")
1010 if other is NotImplemented:
1011 return other
1012 self._array.__isub__(other._array)
1013 return self
1014
1015 def __rsub__(self: Array, other: Union[int, float, Array], /) -> Array:
1016 """

Callers

nothing calls this directly

Calls 1

_check_allowed_dtypesMethod · 0.95

Tested by

no test coverage detected