Commit e33bf4aa authored by Martin Reinecke's avatar Martin Reinecke
Browse files

Merge branch 'cleanup' into 'NIFTy_6'

Tiny cleanup in Linearization.prepend_jac

See merge request !515
parents 17c15fd4 d8ae4d02
Pipeline #75709 passed with stages
in 14 minutes and 21 seconds
......@@ -65,10 +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 not None:
from .operators.sandwich_operator import SandwichOperator
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