def __rdiv__(self, other): r = None if isinstance(other, MIArray): r = MIArray(ArrayMath.div(other.array, self.array)) else: r = MIArray(ArrayMath.div(other, self.array)) return r
def __rdiv__(self, other): if isinstance(other, MIArray): r = ArrayMath.div(other.array, self.array) else: r = ArrayMath.div(other, self.array) if r is None: raise ValueError('Dimension missmatch, can not broadcast!') return MIArray(r)
def __rdiv__(self, other): other = MIArray.__value_other(self, other) r = ArrayMath.div(other, self.array) if r is None: raise ValueError('Dimension missmatch, can not broadcast!') return MIArray(r)