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