Ejemplo n.º 1
0
 def __iadd__(self, other):
     check_basis(self.basis, other.basis)
     self._coeffs += other._coeffs
     return self
Ejemplo n.º 2
0
 def __isub__(self, other):
     check_basis(self.basis, other.basis)
     self._coeffs -= other.coeffs
     return self
Ejemplo n.º 3
0
 def __inner__(self, other):
     check_basis(self.basis, other.basis)
     # TODO: needs to check the gramian too
     return np.dot(self.coeffs, other.coeffs)