-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Hi!
Thanks for the great work! I'm trying to utilize some parts of the code in my research, however, I am confused: when I try to find the integer vector that corresponds to the shortest lattice vector, it doesn't give an integer solution.
Specifically, say, the generator matrix is G of dimension n* n in real numbers, then the lattice generated by this G is L=G*t, where t is integer vectors of size n. Now I want to find the shortest lattice vector y that lies in this lattice L, for which, I call the following function,
'y = shortest_vector(G::Matrix)'
It does give me a vector y, however, when I try to find the exact integer vector t_y that gives y, i.e., y=G*t_y, the code I use is
't_y=G\y'
I didn't get an integer solution of t_y. I think t_y is supposed to be an integer vector, right? Is the code working well in your opinion, or maybe it's related to other matrix operations (e.g. decomposition)? I'm not sure if the algorithms work well for any random lattices in the real field. Would be appreciated if someone could help!