Beispiel #1
0
 def __idiv__(self, other):
     divide(self.array, other, self.array)
     return self
Beispiel #2
0
 def __rdiv__(self, other):
     return self._rc(divide(asarray(other), self.array))
Beispiel #3
0
 def __rdivmod__(self, other):
     return (self._rc(divide(other, self.array)),
             self._rc(remainder(other, self.array)))
Beispiel #4
0
 def __div__(self, other):
     return self._rc(divide(self.array, asarray(other)))
Beispiel #5
0
 def __divmod__(self, other):
     return (self._rc(divide(self.array,
                             other)), self._rc(remainder(self.array,
                                                         other)))