Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update_gso failures #260

Open
clay3154 opened this issue Dec 24, 2023 · 1 comment
Open

update_gso failures #260

clay3154 opened this issue Dec 24, 2023 · 1 comment

Comments

@clay3154
Copy link

Hello, developers.When i test something, i use swap_rows to change the lattice basis, and then there were some miscalculations. And i test follow code
from fpylll import *

    A = IntegerMatrix(7,7)
    A.randomize("uniform",bits = 5)
    M = GSO.Mat(A)
    M.update_gso()

    L = LLL.Reduction(M)
    L()

    for i in range(M.d):
        print("[",M.get_r(i,i),"]",end="")

    M.B.swap_rows(3,4)
    M.B.swap_rows(2,6)
    M.B.swap_rows(1,5)

    M.update_gso()

    for i in range(M.d):
        print("[",M.get_r(i,i),"]"," ",end="")

the two output is same. how do i properly use the update_gso or I misunderstood it?Look forward to your reply.

@malb
Copy link
Collaborator

malb commented Jan 21, 2024

I think you need to wrap your M.B.swap_rows() ops in with M.row_ops(start, end) to inform the library you're making changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants