Exemple #1
0
 def __mod__(self, other):
     return self._rc(remainder(self.array, other))
Exemple #2
0
 def __rdivmod__(self, other):
     return (self._rc(divide(other, self.array)),
             self._rc(remainder(other, self.array)))
Exemple #3
0
 def __imod__(self, other):
     remainder(self.array, other, self.array)
     return self
Exemple #4
0
 def __divmod__(self, other):
     return (self._rc(divide(self.array,
                             other)), self._rc(remainder(self.array,
                                                         other)))
Exemple #5
0
 def __rmod__(self, other):
     return self._rc(remainder(other, self.array))