From 6298d6c736ffd36354635ab7a335f57fb3bd060f Mon Sep 17 00:00:00 2001 From: Edoardo Pasca Date: Wed, 17 Apr 2019 11:11:18 +0100 Subject: fix call --- Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Wrappers/Python') diff --git a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py index e7e41f7..d4370a8 100644 --- a/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py +++ b/Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py @@ -48,7 +48,7 @@ class KullbackLeibler(Function): if self.sum_value==numpy.inf: return numpy.inf else: - tmp = self.sum_value + tmp = self.sum_value.copy() #tmp.fill( numpy.log(tmp.as_array()) ) self.log(tmp) return (x - self.b * tmp ).sum() -- cgit v1.2.3