Force doubles in the LLL-reduced array in numpy.

Former-commit-id: 70cffb53ff5b15515da8dd8ac18f74721f2c3b48
This commit is contained in:
Marek Nečada 2019-08-25 19:27:45 +03:00
parent 0ea3510575
commit 953132e4c9
1 changed files with 1 additions and 1 deletions

View File

@ -619,7 +619,7 @@ def lll_reduce(basis):
and d is the dimensionality of the space into which the lattice
is embedded.
"""
basis = np.array(basis, copy=True, order='C')
basis = np.array(basis, copy=True, order='C', dtype=np.double)
if len(basis.shape) != 2:
raise ValueError("Expected two-dimensional array (got %d-dimensional)"
% len(basis.shape))