Skip to content

The integer vector that gives the shortest lattice vector #1

@shudi3

Description

@shudi3

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions