Commit fec223f7 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent c6791711
Pipeline #70289 passed with stages
in 15 minutes and 24 seconds
......@@ -129,7 +129,7 @@ class VariableCovarianceGaussianEnergy(EnergyOperator):
def apply(self, x):
self._check_input(x)
lin = isinstance(x, Linearization)
res0 = x[self._r].vdot(x[self._r]*x[self._icov])
res0 = x[self._r].vdot(x[self._r]*x[self._icov]).real
res1 = x[self._icov].log().sum()
res = 0.5*(res0-res1)
if not lin:
......
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