Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Apr 23, 2024
1 parent 7ea215a commit e49c32b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion estimator/sis_lattice.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def _solve_for_delta_euclidean(params, d):
def _opt_sis_d(params):
"""
Optimizes SIS dimension for the given parameters, assuming the optimal
d \approx sqrt(n*log(q)/log(delta))
d sqrt(nlog(q)/log(delta))
"""
log_delta = log(params.length_bound, 2) ** 2 / (4 * params.n * log(params.q, 2))
d = sqrt(params.n * log(params.q, 2) / log_delta)
Expand Down

0 comments on commit e49c32b

Please sign in to comment.