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