Ask Your Question
0

Finding short vectors kernel

asked 2012-01-13 17:39:28 +0100

fivemack gravatar image

updated 2019-08-29 18:38:04 +0100

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'

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-01-13 17:48:28 +0100

Martin Maxa gravatar image

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

edit flag offensive delete link more

Comments

Ah yes, thanks!

fivemack gravatar imagefivemack ( 2012-01-17 07:03:41 +0100 )edit

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: 2012-01-13 17:39:28 +0100

Seen: 488 times

Last updated: Aug 29 '19