예제 #1
0
 def __rpow__(self, other):
     if isinstance(other, MIArray):
         r = ArrayMath.pow(other.array, self.array)
     else:
         r = ArrayMath.pow(other, self.array)
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)
예제 #2
0
 def __rpow__(self, other):
     other = MIArray.__value_other(self, other)
     r = ArrayMath.pow(other, self.array)
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)
예제 #3
0
 def __rpow__(self, other):
     other = MIArray.__value_other(self, other)
     r = ArrayMath.pow(other, self.array)        
     if r is None:
         raise ValueError('Dimension missmatch, can not broadcast!')
     return MIArray(r)
예제 #4
0
 def __pow__(self, other):
     r = MIArray(ArrayMath.pow(self.array, other))
     return r
예제 #5
0
 def __pow__(self, other):
     r = MIArray(ArrayMath.pow(self.array, other))
     return r