Expand description
§Example
use adlo::*;
use nalgebra::{DVector, DMatrix};
fn basis_2d_test() {
let mut basis_2d = vec![
AdloVector::new(DVector::from_vec(vec![5, 3])),
AdloVector::new(DVector::from_vec(vec![2, 2]))
];
adaptive_lll(&mut basis_2d);
let expected = AdloVector::new(DVector::from_vec(vec![1, -1]));
assert_eq!(expected, basis_2d[basis_2d.len()-1]);
} Structs§
- Adlo
Vector - The Vector struct represents a distinction in n-dimensional space.
Constants§
Functions§
- adaptive_
lll - The LLL (Lenstra–Lenstra–Lovász) algorithm is a lattice basis reduction algorithm that finds a basis with short,
- create_
rotation_ matrix - multi_
frame_ search - Multi-frame search rotates the basis by 45 degrees and
- rotate_
vector