示例#1
0
文件: vector.py 项目: SpuqTeam/spuq
 def __iadd__(self, other):
     check_basis(self.basis, other.basis)
     self._coeffs += other._coeffs
     return self
示例#2
0
文件: vector.py 项目: SpuqTeam/spuq
 def __isub__(self, other):
     check_basis(self.basis, other.basis)
     self._coeffs -= other.coeffs
     return self
示例#3
0
文件: vector.py 项目: SpuqTeam/spuq
 def __inner__(self, other):
     check_basis(self.basis, other.basis)
     # TODO: needs to check the gramian too
     return np.dot(self.coeffs, other.coeffs)