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

Method __rdivmod__

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

Source from the content-addressed store, hash-verified

635 return res[1]
636
637 def __rdivmod__(self, other):
638 try:
639 quo, rem = self._div(other, self.coef)
640 except ZeroDivisionError:
641 raise
642 except Exception:
643 return NotImplemented
644 quo = self.__class__(quo, self.domain, self.window, self.symbol)
645 rem = self.__class__(rem, self.domain, self.window, self.symbol)
646 return quo, rem
647
648 def __eq__(self, other):
649 res = (isinstance(other, self.__class__) and

Callers 2

__rfloordiv__Method · 0.95
__rmod__Method · 0.95

Calls 1

_divMethod · 0.95

Tested by

no test coverage detected