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

Method __sub__

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

Source from the content-addressed store, hash-verified

537 return self.__class__(coef, self.domain, self.window, self.symbol)
538
539 def __sub__(self, other):
540 othercoef = self._get_coefficients(other)
541 try:
542 coef = self._sub(self.coef, othercoef)
543 except Exception:
544 return NotImplemented
545 return self.__class__(coef, self.domain, self.window, self.symbol)
546
547 def __mul__(self, other):
548 othercoef = self._get_coefficients(other)

Callers

nothing calls this directly

Calls 2

_get_coefficientsMethod · 0.95
_subMethod · 0.95

Tested by

no test coverage detected