Commit 644bb4f0 authored by Philipp Arras's avatar Philipp Arras
Browse files


parent f42d04fe
Pipeline #46342 passed with stages
in 8 minutes and 46 seconds
......@@ -393,7 +393,8 @@ class _OpSum(Operator):
res =, op(x.jac))
if lin1._metric is not None and lin2._metric is not None:
from .sandwich_operator import SandwichOperator
met = SandwichOperator.make(x.jac, lin1._metric._myadd(lin2._metric, False))
met = lin1._metric._myadd(lin2._metric, False)
met = SandwichOperator.make(x.jac, met)
res = res.add_metric(met)
return res
Supports Markdown
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