Commit d8ae4d02 authored by Lukas Platz's avatar Lukas Platz
Browse files

next try

parent 705c8bc7
Pipeline #75698 passed with stages
in 13 minutes and 10 seconds
......@@ -19,7 +19,6 @@ import numpy as np
from .sugar import makeOp
from .operators.operator import Operator
from .operators.sandwich_operator import SandwichOperator
class Linearization(Operator):
......@@ -66,7 +65,10 @@ class Linearization(Operator):
return self.make_var(self._val, self._want_metric)
def prepend_jac(self, jac):
metric = None if self._metric is None else SandwichOperator.make(jac, self._metric)
if self._metric is None:
return, self._jac @ jac)
from .operators.sandwich_operator import SandwichOperator
metric = SandwichOperator.make(jac, self._metric)
return, self._jac @ jac, metric)
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