Crate adlo

Crate adlo 

Source
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§

AdloVector
The Vector struct represents a distinction in n-dimensional space.

Constants§

PSI

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