summaryrefslogtreecommitdiffstats
path: root/Wrappers
diff options
context:
space:
mode:
authorepapoutsellis <epapoutsellis@gmail.com>2019-04-29 16:25:22 +0100
committerepapoutsellis <epapoutsellis@gmail.com>2019-04-29 16:25:22 +0100
commitf49f9835c03aae6a3abc4c35962f12e5d10b0ad2 (patch)
treeb8e43f04643a26c04d502b287c601bcd173f9244 /Wrappers
parent17f3d80556b9a234bccca2a764fe31b83b6f5744 (diff)
downloadframework-f49f9835c03aae6a3abc4c35962f12e5d10b0ad2.tar.gz
framework-f49f9835c03aae6a3abc4c35962f12e5d10b0ad2.tar.bz2
framework-f49f9835c03aae6a3abc4c35962f12e5d10b0ad2.tar.xz
framework-f49f9835c03aae6a3abc4c35962f12e5d10b0ad2.zip
fix KL funcs
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