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

Method __rsub__

numpy/polynomial/_polybase.py:602–607  ·  view source on GitHub ↗
(self, other)

Source from the content-addressed store, hash-verified

600 return self.__class__(coef, self.domain, self.window, self.symbol)
601
602 def __rsub__(self, other):
603 try:
604 coef = self._sub(other, self.coef)
605 except Exception:
606 return NotImplemented
607 return self.__class__(coef, self.domain, self.window, self.symbol)
608
609 def __rmul__(self, other):
610 try:

Callers

nothing calls this directly

Calls 1

_subMethod · 0.95

Tested by

no test coverage detected