summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
Diffstat (limited to 'Wrappers')
-rw-r--r--Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py1
1 files changed, 1 insertions, 0 deletions
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