Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
bencrts committed Dec 31, 2024
1 parent 93629e9 commit d6a1b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion estimator/lwe_primal.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d6a1b09

Please sign in to comment.