From f49f9835c03aae6a3abc4c35962f12e5d10b0ad2 Mon Sep 17 00:00:00 2001 From: epapoutsellis Date: Mon, 29 Apr 2019 16:25:22 +0100 Subject: fix KL funcs --- Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py index 14b5ea0..dc0411e 100644 --- a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py +++ b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py @@ -63,6 +63,7 @@ class KullbackLeibler(Function): return 1 - self.b/(x + self.bnoise) else: x.add(self.bnoise, out=out) + self.b.divide(out, out=out) out.subtract(1, out=out) out *= -1 -- cgit v1.2.3