Example #1
0
 def __imul__(self,other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
Example #2
0
 def __rmul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(aother*self)
     else:
         return self._rc(_dot(aother, self))
Example #3
0
 def __mul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(self*aother)
     else:
         return self._rc(_dot(self, aother))
Example #4
0
 def __imul__(self, other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
Example #5
0
 def __rmul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(aother * self)
     else:
         return self._rc(_dot(aother, self))
Example #6
0
 def __mul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(self * aother)
     else:
         return self._rc(_dot(self, aother))