From 0df603e7f5986b05c23f66fa8da0659f48223a3d Mon Sep 17 00:00:00 2001 From: Minas Karamanis Date: Sun, 18 Feb 2024 16:17:40 -0800 Subject: [PATCH] minor fixes --- docs/source/index.rst | 4 ++++ pocomc/_version.py | 2 +- pocomc/scaler.py | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/source/index.rst b/docs/source/index.rst index 8f71ec6..77a08cb 100644 --- a/docs/source/index.rst +++ b/docs/source/index.rst @@ -95,6 +95,10 @@ Copyright 2022-2024 Minas Karamanis and contributors. Changelog ========= +**1.0.2 (18/02/24)** + +- Minor improvements and bug fixes. + **1.0.0 (28/01/24)** - First stable release. diff --git a/pocomc/_version.py b/pocomc/_version.py index e730b65..69c1e6b 100644 --- a/pocomc/_version.py +++ b/pocomc/_version.py @@ -1 +1 @@ -version = "1.0.1" \ No newline at end of file +version = "1.0.2" \ No newline at end of file diff --git a/pocomc/scaler.py b/pocomc/scaler.py index 412af93..15187d0 100644 --- a/pocomc/scaler.py +++ b/pocomc/scaler.py @@ -266,7 +266,7 @@ def _inverse(self, u: np.ndarray): x[:, self.mask_right], J[:, self.mask_right] = self._inverse_right(u) x[:, self.mask_both], J[:, self.mask_both] = self._inverse_both(u) - log_det_J = np.array([np.linalg.slogdet(Ji * np.identity(len(Ji)))[1] for Ji in J]) + log_det_J = np.log(np.prod(J, axis=1)) return x, log_det_J