| 1 | initial version |
I would suggest something like this
k=2 Q=QuadraticForm(ZZ,2,[1,-1,1]);Q m=Q.short_vector_list_up_to_length(k^2+1) m[k^2]
which is $A_2$ for some $k$ which gives the result in the basis $e_1=(1,-1,0), e_2=(0,1,-1)$.
Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.