MCPcopy Index your code
hub / github.com/numpy/numpy / __sub__

Method __sub__

numpy/_core/tests/test_function_base.py:46–48  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

44 __radd__ = __add__
45
46 def __sub__(self, x):
47 assert_(isinstance(x, PhysicalQuantity))
48 return PhysicalQuantity(float(self) - float(x))
49
50 def __rsub__(self, x):
51 assert_(isinstance(x, PhysicalQuantity))

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected