예제 #1
0
 def __sub__(self, other):
     """ Substraction (binary -) """
     if isinstance(other, float):
         return MV(mv.addmf(ga, self._mv, other, operator.isub))
     else:
         return MV(mv.addmm(ga, self._mv, other._mv, operator.isub))
예제 #2
0
파일: ga.py 프로젝트: institution/ga
			def __sub__(self, other):
				""" Substraction (binary -) """
				if isinstance(other, float):					
					return MV(mv.addmf(ga, self._mv, other, operator.isub))
				else: 
					return MV(mv.addmm(ga, self._mv, other._mv, operator.isub))
예제 #3
0
 def __add__(self, other):
     """ Addition (binary +) """
     if isinstance(other, float):
         return MV(mv.addmf(ga, self._mv, other, operator.iadd))
     else:
         return MV(mv.addmm(ga, self._mv, other._mv, operator.iadd))
예제 #4
0
파일: ga.py 프로젝트: institution/ga
			def __add__(self, other):
				""" Addition (binary +) """
				if isinstance(other, float):					
					return MV(mv.addmf(ga, self._mv, other, operator.iadd))
				else: 
					return MV(mv.addmm(ga, self._mv, other._mv, operator.iadd))