Ask Your Question
0

Finding short vectors kernel

asked 13 years ago

fivemack gravatar image

updated 5 years ago

FrédéricC gravatar image

I am looking for quadratic forms with a given point - so I want short integer vectors which are perpendicular to

v=[X*X,X*Y,X*Z,X*T,Y*Y,Y*Z,Y*T,Z*Z,Z*T,T*T]

for (in this case) [X,Y,Z,T]=[4423,7583,8765,3459]

This sounds like a problem with LLL written all over it, so I do

  L=[[Y,-X,0,0,0,0,0,0,0,0],[0,Z,-Y,0,0,0,0,0,0,0],[0,0,T,-Z,0,0,0,0,0,0],[0,0,0,Y*Y,-X*T,0,0,0,0,0],[0,0,0,0,Z,-Y,0,0,0,0], 
  [0,0,0,0,0,T,-Z,0,0,0],[0,0,0,0,0,0,Z*Z,-Y*T,0,0],[0,0,0,0,0,0,0,T,-Z,0],[0,0,0,0,0,0,0,0,T,-Z]]

  M=matrix(L)

  M.lll()

but this gives an error message AttributeError: 'sage.matrix.matrix_integer_dense.Matrix_integer_dense' object has no attribute 'lll'

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 13 years ago

Martin Maxa gravatar image

Just write M.LLL() instead of M.lll()

Preview: (hide)
link

Comments

Ah yes, thanks!

fivemack gravatar imagefivemack ( 13 years ago )

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 13 years ago

Seen: 519 times

Last updated: Aug 29 '19