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