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

Method __add__

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

Source from the content-addressed store, hash-verified

529 return self
530
531 def __add__(self, other):
532 othercoef = self._get_coefficients(other)
533 try:
534 coef = self._add(self.coef, othercoef)
535 except Exception:
536 return NotImplemented
537 return self.__class__(coef, self.domain, self.window, self.symbol)
538
539 def __sub__(self, other):
540 othercoef = self._get_coefficients(other)

Callers

nothing calls this directly

Calls 2

_get_coefficientsMethod · 0.95
_addMethod · 0.95

Tested by

no test coverage detected