next | previous | forward | backward | up | top | index | toc | Macaulay2 web site
RandomComplexes :: testTimeForLLLonSyzygies

testTimeForLLLonSyzygies -- test timing for LLL on syzygies

Synopsis

Description

We randomly choose an r × n matrix A over ZZ with entries up to the given Height, and take the time to compute B=ker A and an LLL basis of B.

i1 : setRandomSeed "nice example 2";
i2 : r=10,n=20

o2 = (10, 20)

o2 : Sequence
i3 : (m,t1,t2)=testTimeForLLLonSyzygies(r,n,Height=>11)

o3 = ({5, 2.91596e52, 9}, .00126692, .000694327)

o3 : Sequence
i4 : (m,t1,t2)=testTimeForLLLonSyzygies(15,30,Height=>100)

o4 = ({50, 2.30853e454, 98}, .00363786, .0356639)

o4 : Sequence
i5 : L=apply(10,c->(testTimeForLLLonSyzygies(15,30))_{1,2})

o5 = {{.00401495, .011505}, {.00386173, .00370426}, {.0369512, .00704665},
     ------------------------------------------------------------------------
     {.00479045, .0101396}, {.00444, .0124945}, {.00534269, .0131885},
     ------------------------------------------------------------------------
     {.00376675, .00719984}, {.0300486, .0075694}, {.00424519, .0052763},
     ------------------------------------------------------------------------
     {.00500982, .00773306}}

o5 : List
i6 : 1/10*sum(L,t->t_0)

o6 = .0102471446

o6 : RR (of precision 53)
i7 : 1/10*sum(L,t->t_1)

o7 = .00858570120000001

o7 : RR (of precision 53)

Ways to use testTimeForLLLonSyzygies :