Ejemplo n.º 1
0
 def __imul__(self,other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
Ejemplo n.º 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))
Ejemplo n.º 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))
Ejemplo n.º 4
0
 def __imul__(self, other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
Ejemplo n.º 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))
Ejemplo n.º 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))