Ejemplo n.º 1
0
 def __rdivmod__(self, other):
     return elementwise._divmod(other, self)
Ejemplo n.º 2
0
 def __rdivmod__(self, other):
     return elementwise._divmod(other, self)
Ejemplo n.º 3
0
 def __divmod__(self, other):
     if self._should_use_rop(other):
         return other.__rdivmod__(self)
     else:
         return elementwise._divmod(self, other)
Ejemplo n.º 4
0
 def __divmod__(self, other):
     if self._should_use_rop(other):
         return other.__rdivmod__(self)
     else:
         return elementwise._divmod(self, other)