From a043f0d7c53105d68ba2db45080fed3e29a253c3 Mon Sep 17 00:00:00 2001 From: mhostetter Date: Mon, 1 Jul 2024 17:10:06 -0400 Subject: [PATCH] Make `dtype` arbitrary so negative integers aren't force-cast into uints --- src/galois/_polys/_dense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/galois/_polys/_dense.py b/src/galois/_polys/_dense.py index 91b6050fe..6edd1e80e 100644 --- a/src/galois/_polys/_dense.py +++ b/src/galois/_polys/_dense.py @@ -510,4 +510,4 @@ def implementation(nonzero_degrees, nonzero_coeffs, primitive_element): # pragm if len(roots) == degree: break - return np.array([roots, powers], dtype=nonzero_coeffs.dtype) + return np.array([roots, powers])