Commit 2bc0a415 authored by Philipp Arras's avatar Philipp Arras
Browse files


parent fd51b765
...@@ -54,11 +54,11 @@ class Hamiltonian(Energy): ...@@ -54,11 +54,11 @@ class Hamiltonian(Energy):
@memo @memo
def curvature(self): def curvature(self):
prior_curv = self._prior.curvature prior_curv = self._prior.curvature
if self._ic_samp is not None: if self._ic_samp is None:
c = self._lh.curvature + prior_curv
c = SamplingEnabler(self._lh.curvature, prior_curv.inverse, c = SamplingEnabler(self._lh.curvature, prior_curv.inverse,
self._ic_samp, prior_curv.inverse) self._ic_samp, prior_curv.inverse)
c = self._lh.curvature + prior_curv
return InversionEnabler(c, self._ic, self._precond) return InversionEnabler(c, self._ic, self._precond)
def __str__(self): def __str__(self):
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