| Hosted by CoCalc | Download
A = random_matrix(ZZ, 200) t = cputime() B = A.LLL() cputime(t)
6.409722
%time B = A.LLL(algorithm="fpLLL:fast")
CPU time: 6.36 s, Wall time: 6.37 s
matrix_plot(B)
show(cube(color=['red', 'blue', 'green'], frame_thickness=2, frame_color='brown', opacity=0.8), frame=False)
3D rendering not yet implemented
2+2 ︠d4b5202b-e5b3-4f86-a4d0-16b6f10f239ci︠ %md Foo

Foo

A = matrix ( ZZ , 3, [1 ,4 ,9 , 16 ,25 ,36 , 49 ,64 ,81]) S , U , V = A.smith_form (); S
[ 1 0 0] [ 0 3 0] [ 0 0 72]