Commit d3b70136 authored by Martin Reinecke's avatar Martin Reinecke

bug fix

parent b33dac3d
Pipeline #23390 passed with stage
in 4 minutes and 36 seconds
......@@ -26,10 +26,10 @@ class SumOperator(LinearOperator):
raise ValueError("domain mismatch")
self._capability = (op1.capability & op2.capability &
(self.TIMES | self.ADJOINT_TIMES))
op1 = op1._ops if isinstance(op1, SumOperator) else (op1,)
neg1 = op1._neg if isinstance(op1, SumOperator) else (False,)
op2 = op2._ops if isinstance(op2, SumOperator) else (op2,)
op1 = op1._ops if isinstance(op1, SumOperator) else (op1,)
neg2 = op2._neg if isinstance(op2, SumOperator) else (False,)
op2 = op2._ops if isinstance(op2, SumOperator) else (op2,)
if neg:
neg2 = tuple(not n for n in neg2)
self._ops = op1 + op2
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment