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

Method __rsub__

numpy/lib/user_array.py:72–73  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

70 return self._rc(self.array - asarray(other))
71
72 def __rsub__(self, other):
73 return self._rc(asarray(other) - self.array)
74
75 def __isub__(self, other):
76 subtract(self.array, other, self.array)

Callers

nothing calls this directly

Calls 2

_rcMethod · 0.95
asarrayFunction · 0.90

Tested by

no test coverage detected