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

Method __rsub__

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

Source from the content-addressed store, hash-verified

48 return PhysicalQuantity(float(self) - float(x))
49
50 def __rsub__(self, x):
51 assert_(isinstance(x, PhysicalQuantity))
52 return PhysicalQuantity(float(x) - float(self))
53
54 def __mul__(self, x):
55 return PhysicalQuantity(float(x) * float(self))

Callers

nothing calls this directly

Calls 2

assert_Function · 0.90
PhysicalQuantityClass · 0.85

Tested by

no test coverage detected