Ask Your Question

Revision history [back]

Is there a problem in voronoi cell computation ?

Dear community,

I was wondering if there is a problem in my following computation of voronoi cell ?

Here is the code I am using :

from sage.modules.free_module_integer import IntegerLattice
l  = [7, 0, -1, -2, -1, -2, 7, -2, 0, 0, -2, 0, 7, -2, 0, -1, -2, -1, 7, 0, -1, -1, 0, -2, 7]
M = matrix(5, 5, l)
print (IntegerLattice(M).voronoi_cell().volume() == M.det() )

If I am not mistaken, the last print should be true which is not the case. Am I doing something wrong here ?

click to hide/show revision 2
None

Is there a problem in voronoi cell computation ?

Dear community,

I was wondering if there is a problem in my following computation of voronoi cell ?

Here is the code I am using :

from sage.modules.free_module_integer import IntegerLattice
l  = [7, 0, -1, -2, -1, -2, 7, -2, 0, 0, -2, 0, 7, -2, 0, -1, -2, -1, 7, 0, -1, -1, 0, -2, 7]
M = matrix(5, 5, l)
print (IntegerLattice(M).voronoi_cell().volume() == M.det() )

If I am not mistaken, the last print should be true which is not the case. Am I doing something wrong here ?

click to hide/show revision 3
retagged

Is there a problem in voronoi cell computation ?

Dear community,

I was wondering if there is a problem in my following computation of voronoi cell ?

Here is the code I am using :

from sage.modules.free_module_integer import IntegerLattice
l  = [7, 0, -1, -2, -1, -2, 7, -2, 0, 0, -2, 0, 7, -2, 0, -1, -2, -1, 7, 0, -1, -1, 0, -2, 7]
M = matrix(5, 5, l)
print (IntegerLattice(M).voronoi_cell().volume() == M.det() )

If I am not mistaken, the last print should be true which is not the case. Am I doing something wrong here ?