Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/tclose/Diophantine
Browse files Browse the repository at this point in the history
  • Loading branch information
tclose committed Sep 20, 2017
2 parents 162062f + 9ef818d commit 83a9d9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions diophantine.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ def lllhermite(G, m1=1, n1=1):
n = G.shape[1]
A, B, L, D = initialise_working_matrices(G)
if first_nonzero_is_negative(A):
B[m, m] = -1
A[m, :] *= -1
B[m - 1, m - 1] = -1
A[m - 1, :] *= -1
k = 1
while k < m:
col1, col2 = reduce_matrix(A, B, L, k, k - 1, D)
Expand Down

0 comments on commit 83a9d9f

Please sign in to comment.