# Lenstra-Lenstra-Lovász (LLL) reduction
Transforms a lattice's basis into a form in which the first vector of the basis is not "much" longer than the shortest (non-zero) vector of the lattice:
||first basis vector|| <= 2^((n-1)/2) ||shortest vector||
where n
is the dimension of lattice (assuming LOVASZ_FACTOR = 4.0/3.0
).
```rust
use lllreduce::{ Basetype, gramschmidtwithcoeffs, lllreduce};
fn main() {
let originalmtx : std::vec::Vec
println!("\tumtx");
for a in &mtxtuple.0 {
println!("\t\t{:?}", a);
}
println!("\tqmtx");
for a in &mtxtuple.1 {
println!("\t\t{:?}", a);
}
}
```
This is the very first, very drafty version, anything can change in it in the future.