Skip to content

Commit

Permalink
Document +1
Browse files Browse the repository at this point in the history
  • Loading branch information
TheBlupper committed Jun 6, 2024
1 parent e1b32b8 commit ffe760d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fpylll/algorithms/babai.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def babai(B, t, *args, **kwargs):

for j in range(B.ncols):
A[-1, j] = t[j]
# precise norm
# precise norm, +1 to make sure it's not too small, too big doesn't matter
A[-1, -1] = isqrt(sum(x**2 for x in A[-2])) + 1

LLL.reduction(A, *args, **kwargs) # now call LLL to run Babai
Expand Down

1 comment on commit ffe760d

@malb
Copy link
Collaborator

@malb malb commented on ffe760d Jun 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

Please sign in to comment.