From d6a1b0906a0295dc6b72b4c1242e4fd48214800b Mon Sep 17 00:00:00 2001 From: Ben <16917183+bencrts@users.noreply.github.com> Date: Tue, 31 Dec 2024 13:09:38 +0000 Subject: [PATCH] update --- estimator/lwe_primal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/estimator/lwe_primal.py b/estimator/lwe_primal.py index e545c59..3c701e7 100644 --- a/estimator/lwe_primal.py +++ b/estimator/lwe_primal.py @@ -313,7 +313,7 @@ def gaussian_heuristic_log_input(r): try: r = [log(x) for x in r] except ValueError: - # shift and re-compute + # precision error, shift and re-compute c_shift = 1e-300 r = [log(c_shift) + log(x / c_shift) for x in r] print(r)