Exemplo n.º 1
0
    def __pow__(self,other): return arrays.power(self.data, arrays.asvarray(other))

    def __len__(self):
Exemplo n.º 2
0
 def __rdiv__(self, other): return arrays.divide(arrays.asvarray(other), self.data)
 def __pow__(self,other): return arrays.power(self.data, arrays.asvarray(other))
Exemplo n.º 3
0
 def __mul__(self, other): return arrays.multiply(self.data, arrays.asvarray(other))
 __rmul__ = __mul__
Exemplo n.º 4
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))
Exemplo n.º 5
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)
Exemplo n.º 6
0
 def __add__(self, other): return arrays.add(self.data, arrays.asvarray(other))
 __radd__ = __add__