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

Gaussian energies are real

parent 5a09d1ae
......@@ -48,7 +48,7 @@ class GaussianEnergy(Energy):
def value(self):
if self._cov is not None:
return .5 * self.residual.vdot(self._cov.inverse(self.residual))
return .5 * self.residual.vdot(self._cov.inverse(self.residual)).real
return .5 * self.residual.vdot(self.residual).real
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