def __imul__(self,other): aother = asarray(other) self[:] = _dot(self, aother) return self
def __rmul__(self, other): aother = asarray(other) if len(aother.shape) == 0: return self._rc(aother*self) else: return self._rc(_dot(aother, self))
def __mul__(self, other): aother = asarray(other) if len(aother.shape) == 0: return self._rc(self*aother) else: return self._rc(_dot(self, aother))
def __imul__(self, other): aother = asarray(other) self[:] = _dot(self, aother) return self
def __rmul__(self, other): aother = asarray(other) if len(aother.shape) == 0: return self._rc(aother * self) else: return self._rc(_dot(aother, self))
def __mul__(self, other): aother = asarray(other) if len(aother.shape) == 0: return self._rc(self * aother) else: return self._rc(_dot(self, aother))