Skip to content
Snippets Groups Projects
Commit fec223f7 authored by Philipp Arras's avatar Philipp Arras
Browse files

Fixup

parent c6791711
No related branches found
No related tags found
2 merge requests!411Gig energy,!410Simplifications
Pipeline #70289 passed
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment