Ticket #1188 (closed defect: fixed)
unexpected results after LLL?
| Reported by: | malb | Owned by: | malb |
|---|---|---|---|
| Priority: | blocker | Milestone: | sage-2.8.13 |
| Component: | linear algebra | Keywords: | |
| Cc: | Author(s): | ||
| Report Upstream: | Reviewer(s): | ||
| Merged in: | Work issues: |
Description
Consider this example from the Magma handbook:
# n integers which's GCD we are interested in sage: Q = [ 67015143, 248934363018, 109210, 25590011055, 74631449, 10230248, 709487, 68965012139, 972065, 864972271 ] sage: n = len(Q) sage: S = 100 sage: X = Matrix(IntegerRing(), n, n + 1) sage: for i in xrange(n): ... X[i,i + 1] = 1 sage: for i in xrange(n): ... X[i,0] = S*Q[i] sage: L = X.LLL() sage: show(L) sage: M = L[n-1].list()[1:] sage: add([Q[i]*M[i] for i in range(n)]) 864972271
which isn't quite right, we expect:
# n integers which's GCD we are interested in sage: Q = [ 67015143, 248934363018, 109210, 25590011055, 74631449, 10230248, 709487, 68965012139, 972065, 864972271 ] sage: n = len(Q) sage: S = 100 sage: X = Matrix(IntegerRing(), n, n + 1) sage: for i in xrange(n): ... X[i,i + 1] = 1 sage: for i in xrange(n): ... X[i,0] = S*Q[i] sage: L = X.LLL(algorithm='NTL:LLL') sage: show(L) sage: M = L[n-1].list()[1:] sage: add([Q[i]*M[i] for i in range(n)]) -1
Is this my lack of understanding of LLL reduction or is this a bug?
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

