Skip to content

Commit

Permalink
more repairing of previously introduced bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
malb committed Feb 11, 2018
1 parent f5f1995 commit 3e93774
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ To compute the norm of a shortest vector of the lattice generated by the rows of
>>> import numpy as np
>>> SVP.shortest_vector(A)
(75, 44, -5, -16)
>>> A[0]
>>> print(A[0])
(75, 44, -5, -16)
>>> A[0].norm()
88.55506761332182
Expand All @@ -159,7 +159,7 @@ Also, the ``GaussSieve`` algorithm [MV]_ is implemented,
>>> v = GaussSieve(A, algorithm=2)()
>>> tuple(map(lambda x: -1*x, v)) if v[0] < 0 else v
(6, -5, 3, -4, 2, -4, 1, -1, -3, -1, -5, 1, 1, 2, -1, -1, -3, 2, 1, 1, 0, 5, -2, 4, -3, 0, 3, -5, 0, -2)
>>> A[0]
>>> print(A[0])
(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 66, 52, 5, 45, 56, 26, 89, 51, 112, 64, 37, 85, 5, 87, 3)
>>> A[0].norm()
237.23827684418887
Expand Down

0 comments on commit 3e93774

Please sign in to comment.