From 953132e4c9da4d283b38b83c40211e7e90a38783 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Ne=C4=8Dada?= Date: Sun, 25 Aug 2019 19:27:45 +0300 Subject: [PATCH] Force doubles in the LLL-reduced array in numpy. Former-commit-id: 70cffb53ff5b15515da8dd8ac18f74721f2c3b48 --- qpms/qpms_c.pyx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qpms/qpms_c.pyx b/qpms/qpms_c.pyx index be09550..cfb6218 100644 --- a/qpms/qpms_c.pyx +++ b/qpms/qpms_c.pyx @@ -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))