示例#1
0
文件: __init__.py 项目: fxia22/ASM_xf
 def __imul__(self,other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
示例#2
0
文件: __init__.py 项目: fxia22/ASM_xf
 def __rmul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(aother*self)
     else:
         return self._rc(_dot(aother, self))
示例#3
0
文件: __init__.py 项目: fxia22/ASM_xf
 def __mul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(self*aother)
     else:
         return self._rc(_dot(self, aother))
示例#4
0
文件: __init__.py 项目: joshfermin/AI
 def __imul__(self, other):
     aother = asarray(other)
     self[:] = _dot(self, aother)
     return self
示例#5
0
文件: __init__.py 项目: joshfermin/AI
 def __rmul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(aother * self)
     else:
         return self._rc(_dot(aother, self))
示例#6
0
文件: __init__.py 项目: joshfermin/AI
 def __mul__(self, other):
     aother = asarray(other)
     if len(aother.shape) == 0:
         return self._rc(self * aother)
     else:
         return self._rc(_dot(self, aother))