diff options
Diffstat (limited to 'Wrappers/Python')
-rw-r--r-- | Wrappers/Python/ccpi/optimisation/functions/KullbackLeibler.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |