Ejemplo n.º 1
0
 def __rsub__(self, other): return arrays.subtract(arrays.asvarray(other), self.data)
 def __mul__(self, other): return arrays.multiply(self.data, arrays.asvarray(other))
Ejemplo n.º 2
0
 def __sub__(self, other): return arrays.subtract(self.data, arrays.asvarray(other))
 def __rsub__(self, other): return arrays.subtract(arrays.asvarray(other), self.data)