예제 #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))