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

Method __sub__

numpy/ma/core.py:4228–4235  ·  view source on GitHub ↗

Subtract other from self, and return a new masked array.

(self, other)

Source from the content-addressed store, hash-verified

4226 return add(other, self)
4227
4228 def __sub__(self, other):
4229 """
4230 Subtract other from self, and return a new masked array.
4231
4232 """
4233 if self._delegate_binop(other):
4234 return NotImplemented
4235 return subtract(self, other)
4236
4237 def __rsub__(self, other):
4238 """

Callers

nothing calls this directly

Calls 2

_delegate_binopMethod · 0.95
subtractFunction · 0.85

Tested by

no test coverage detected