Example #1
0
 def test_kannan_4dim(self) :
     x = np.array([
         [-2, 7, 7, -5],
         [3, -2, 6, -1],
         [2, -8, -9, -7],
         [8, -9, 6, -4],
     ])
     init_global()
     print shortest(x)
Example #2
0
 def test_lll_fullrank_3dim(self) :
     print "Test 3 dimensi"
     print "=============="
     x = np.array([
         [4,5,1],
         [4,8,2],
         [6,2,6]
     ])
     
     b = LLL(x)
     print b.getBasis()
     print "test Kannan"
     shortest(x)