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

bigl2::lattice_reduce infinite loop #3

Closed
andersk opened this issue Apr 6, 2020 · 1 comment · Fixed by #4
Closed

bigl2::lattice_reduce infinite loop #3

andersk opened this issue Apr 6, 2020 · 1 comment · Fixed by #4
Labels
bug Something isn't working

Comments

@andersk
Copy link

andersk commented Apr 6, 2020

This test loops infinitely:

use lll_rs::{l2::bigl2, matrix::Matrix, vector::BigVector};
use rug::Assign;

fn main() {
    let mut basis: Matrix<BigVector> = Matrix::init(3, 4);
    basis[0][0].assign(1);
    basis[0][3].assign(1);
    basis[1][1].assign(1);
    basis[1][3].assign(5);
    basis[2][2].assign(1);
    basis[2][3].assign(9);
    bigl2::lattice_reduce(&mut basis, 0.6, 0.95);
}
@Ashashin Ashashin added the bug Something isn't working label Apr 6, 2020
@Ashashin Ashashin mentioned this issue Apr 6, 2020
@Ashashin Ashashin linked a pull request Apr 6, 2020 that will close this issue
@Ashashin
Copy link
Member

Ashashin commented Apr 6, 2020

Thank you for your feedback. It was indeed a small mistake on my side. It will be fixed once the PR is approved.

@shargs shargs closed this as completed in #4 Apr 6, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants