From 4e64e9f0e89d7c856719b9bedcde8b652f1d8ecb Mon Sep 17 00:00:00 2001 From: Martin Rubey Date: Wed, 28 Feb 2024 19:28:06 +0100 Subject: [PATCH] use sparse polynomials for generating functions --- src/sage/databases/findstat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/databases/findstat.py b/src/sage/databases/findstat.py index 657eaf13dad..f3ea19d6994 100644 --- a/src/sage/databases/findstat.py +++ b/src/sage/databases/findstat.py @@ -841,7 +841,7 @@ def _generating_functions_from_dict(gfs, style): if style == "polynomial": from sage.rings.polynomial.polynomial_ring_constructor import PolynomialRing from sage.rings.integer_ring import ZZ - P = PolynomialRing(ZZ, "q") + P = PolynomialRing(ZZ, "q", sparse=True) q = P.gen() return {level: sum(coefficient * q**exponent for exponent, coefficient in gen_dict.items())