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

Method __sub__

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

Source from the content-addressed store, hash-verified

67 return self
68
69 def __sub__(self, other):
70 return self._rc(self.array - asarray(other))
71
72 def __rsub__(self, other):
73 return self._rc(asarray(other) - self.array)

Callers

nothing calls this directly

Calls 2

_rcMethod · 0.95
asarrayFunction · 0.90

Tested by

no test coverage detected